time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (909B)


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