1.0.0 • Published 7 years ago
@kingjs/descriptor.writable-symbol v1.0.0
@kingjs/descriptor.writable-symbol
Symbol whose presence indicates a descriptor is mutable.
Usage
var writableSymbol = require('@kingjs/descriptor.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, normalize, 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.writable-symbolLicense
MIT
1.0.0
7 years ago