time-to-botec

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

repl.txt (865B)


      1 
      2 {{alias}}( value, property )
      3     Tests if an object's own or inherited property is non-configurable.
      4 
      5     A non-configurable property is a property which cannot be deleted and whose
      6     descriptor cannot 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 non-
     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     false
     33     > bool = {{alias}}( obj, 'beep' )
     34     true
     35 
     36     See Also
     37     --------
     38