values()

Gets an array of all of the values within a given array or object.

This function is valid in v2.8.0 to v2.13.3. This function has been downloaded 38 times.

Parameters

{*} value
Value for which you would like the property names retrieved.
{boolean=} opt_onlyNonEnums Optional
If specified and is not null or undefined but is false-ish, all of the properties (enumerable or not) will be returned. If this is true-ish only the non-enumerable properties will be returned. If this is not given or is null or undefined all of the enumerable properties will be returned.

Returns

{Array}
An array of all of the values in value.

Required Function

This function requires the following function which is included automatically:

  • keys()
    Gets the keys of a specified value.