Skip to content

Commit 4ddb893

Browse files
committed
Add REPL text
1 parent a3581c6 commit 4ddb893

File tree

1 file changed

+32
-0
lines changed
  • lib/node_modules/@stdlib/utils/keys/docs

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
{{alias}}( value )
3+
Returns an array of an object's own enumerable property names.
4+
5+
Name order is not guaranteed, as object key enumeration is not specified
6+
according to the ECMAScript specification. In practice, however, most
7+
engines use insertion order to sort an object's keys, thus allowing for
8+
deterministic extraction.
9+
10+
If provided `null` or `undefined`, the function returns an empty array.
11+
12+
Parameters
13+
----------
14+
value: any
15+
Input value.
16+
17+
Returns
18+
-------
19+
keys: Array
20+
List of an object's own enumerable property names.
21+
22+
Examples
23+
--------
24+
> function Foo() { this.beep = 'boop'; return this; };
25+
> Foo.prototype.foo = 'bar';
26+
> var obj = new Foo();
27+
> var keys = {{alias}}( obj )
28+
[ 'beep' ]
29+
30+
See Also
31+
--------
32+

0 commit comments

Comments
 (0)