repl.txt (707B)
1 2 {{alias}}( value, property ) 3 Tests if an object's own property is write-only. 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 property is write-only. 17 18 Examples 19 -------- 20 > var obj = { 'boop': true }; 21 > var desc = {}; 22 > desc.configurable = false; 23 > desc.enumerable = true; 24 > desc.set = function setter( v ) { obj.boop = v; }; 25 > {{alias:@stdlib/utils/define-property}}( obj, 'beep', desc ); 26 > var bool = {{alias}}( obj, 'boop' ) 27 false 28 > bool = {{alias}}( obj, 'beep' ) 29 true 30 31 See Also 32 -------- 33