repl.txt (737B)
1 2 {{alias}}( value, property ) 3 Tests if an object's own or inherited property is enumerable. 4 5 Parameters 6 ---------- 7 value: any 8 Value to test. 9 10 property: any 11 Property to test. 12 13 Returns 14 ------- 15 bool: boolean 16 Boolean indicating if an object's own or inherited property is 17 enumerable. 18 19 Examples 20 -------- 21 > var obj = { 'boop': true }; 22 > var desc = {}; 23 > desc.configurable = true; 24 > desc.enumerable = false; 25 > desc.writable = true; 26 > desc.value = true; 27 > {{alias:@stdlib/utils/define-property}}( obj, 'beep', desc ); 28 > var bool = {{alias}}( obj, 'boop' ) 29 true 30 > bool = {{alias}}( obj, 'beep' ) 31 false 32 33 See Also 34 -------- 35