keys()

Gets the keys of a specified array or object.

This function is valid in v2.1.0 to v2.7.0. This function has been downloaded 0 times.

Parameters

{Array|Object} arrOrObj
Array or object whose keys will be retrieved.
{boolean=} opt_includeInheritance Optional, Default:false
Indicates whether or not inherited keys should be retrieved.

Returns

{Array}
An array of all of the keys of arrOrObj.

Required Function

This function requires the following function which is included automatically:

  • forOf()
    Traverses all the characters in a string or all of the items in an array or an object, executing a function on each one.