1.0.0 • Published 6 years ago
@kingjs/descriptor.object.writable-symbol v1.0.0
@kingjs/descriptor.object.writable-symbol
Symbol whose presence indicates a descriptor is mutable.
Usage
var writableSymbol = require('@kingjs/descriptor.object.writable-symbol');
typeof writableSymbol;
result: 'symbol'
API
Interfaces
Descriptor
: see @kingjs/descriptor
Remarks
Object and Array literals are considered immutable by descriptor APIs because those objects are created without writable-symbol
.
write
, clone
, and remove
, will return descriptors with writable-symbol
set to undefined
.
freeze
will delete writable-symbol
.
isFrozen
will test for writable-symbol
.
All other descriptor APIs that return a descriptor will not have writable-symbol
set.
Install
With npm installed, run
$ npm install @kingjs/descriptor.object.writable-symbol
License
MIT
1.0.0
6 years ago