time-to-botec

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

repl.txt (832B)


      1 
      2 {{alias}}( value, property )
      3     Tests if an object's own 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 property is non-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 = 'beep';
     29     > {{alias:@stdlib/utils/define-property}}( obj, 'beep', desc );
     30     > var bool = {{alias}}( obj, 'boop' )
     31     false
     32     > bool = {{alias}}( obj, 'beep' )
     33     true
     34 
     35     See Also
     36     --------
     37