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

ElementFunction
ReturnsNumber

Arguments

valobject|array|number|string|regexp[required] The value to count.

Example

nano.count(foo);
CodeMessageLineFile
2count(): Parameter must be an array or an object that implements Countable224/home2/njsorg/public_html/pagetype/content/pages/en/docml.viewer.php