This blog uses responsible cookies for functionality and user preferences.
Google Analytics is used for collecting general public information to understand how my blog is used.
Learn moreScript Title: countDimensions
Programming Language: Java Script
Date Completed: 2013/02/26
Purpose: Counts the number of dimensions in an array.
Description: Gets the number of dimensions in an array, returns a number or undefined if the input is not an array.
Method:
countDimensions ( array_a );
Example Usage:
var array_a = new Array();
array_a.push( [“hello”, [“hello2″,”1”]],[“hi”, “1”, “3”] );countDimensions ( array_a );
Returns 3
Example Usage:
var array_a = new Array();
array_a.push( [“hello”, [“hello2″,”1”]],[“hi”, “1”, “3”] );countDimensions ( array_a[0] );
Returns 1
Terms of Use, Cookies, Privacy, and more, see Terms and Privacy
Third-party copyrights and trademarks featured on this site are owned by their respected holders.
Website written and designed by Patcoola 2019, some rights reserved.
This blog uses responsible cookies for functionality and user preferences.
Google Analytics is used for collecting general public information to understand how my blog is used.
Learn moreDear EU visitor, I am required to ask you consent for the following.