time-to-botec

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

repl.txt (742B)


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