count Function
Returns the length on the value. If passed an object, return the number of properties, methods and objects in the object. If passed an array, retuns the length of the array. If passed a string returns the length of the string. If passed a regular expression object, returns 1. If passed a number, the number is returned. Any other type returns 0.
Summary
Element | Function |
Returns | Number |
Arguments
val | object|array|number|string|regexp | [required] The value to count. |
Example