time-to-botec

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

repl.txt (808B)


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