1.0.0 • Published 6 years ago

@kingjs/descriptor.object.writable-symbol v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@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

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

Analytics