repl.txt (1063B)
1 2 {{alias}}( value ) 3 Returns an array of an object's own and inherited enumerable symbol 4 properties. 5 6 Property order is not guaranteed, as object property enumeration is not 7 specified according to the ECMAScript specification. In practice, however, 8 most engines use insertion order to sort an object's properties, thus 9 allowing for 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 symbols: Array 21 List of an object's own and inherited enumerable symbol properties. 22 23 Examples 24 -------- 25 > var obj = {}; 26 > var desc = {}; 27 > desc.configurable = false; 28 > desc.enumerable = true; 29 > desc.writable = true; 30 > desc.value = 'boop'; 31 > var sym = ( {{alias:@stdlib/symbol/ctor}} ) ? {{alias:@stdlib/symbol/ctor}}( 'beep' ) : 'beep'; 32 > {{alias:@stdlib/utils/define-property}}( obj, sym, desc ); 33 > var symbols = {{alias}}( obj ) 34 35 See Also 36 -------- 37