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