time-to-botec

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

repl.txt (730B)


      1 
      2 {{alias}}( value, property )
      3     Tests if an object's own property is readable and writable.
      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 readable and writable.
     17 
     18     Examples
     19     --------
     20     > var obj = { 'boop': true };
     21     > var desc = {};
     22     > desc.configurable = false;
     23     > desc.enumerable = false;
     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     true
     28     > bool = {{alias}}( obj, 'beep' )
     29     false
     30 
     31     See Also
     32     --------
     33