size
Gets the size of an array, object or string.
- Get type of
val(array,objectorstring). - Use
Array.prototype.lengthproperty for arrays. - Use
lengthorsizevalue if available or number of keys for objects. - Use
sizeof aBlobobject created fromvalfor strings. - Split strings into array of characters with
split('')and return its length.