time-to-botec/js/node_modules/@stdlib/utils/nonenumerable-properties/docs/repl.txt

38 lines
959 B
Plaintext
Raw Normal View History

{{alias}}( value )
Returns an array of an object's own non-enumerable property names and
symbols.
Property order is not guaranteed, as object property enumeration is not
specified according to the ECMAScript specification. In practice, however,
most engines use insertion order to sort an object's properties, thus
allowing for deterministic extraction.
If provided `null` or `undefined`, the function returns an empty array.
Parameters
----------
value: any
Input value.
Returns
-------
props: Array
List of an object's own non-enumerable properties.
Examples
--------
> var obj = {};
> var desc = {};
> desc.configurable = false;
> desc.enumerable = false;
> desc.writable = false;
> desc.value = 'boop';
> {{alias:@stdlib/utils/define-property}}( obj, 'beep', desc );
> var props = {{alias}}( obj )
[ 'beep' ]
See Also
--------