@ganuz/is-extensible
v0.1.1
Published
Is Extensible is package from Ganuz library
Downloads
34
Maintainers
Readme
@ganuz/is-extensible
Is Extensible is package from Ganuz library
Install
$ yarn add @ganuz/is-extensible
Or
$ npm install --save @ganuz/is-extensible
Use
Module
import {
default as isExtensible
} from '@ganuz/is-extensible';
Browser
<script src="https://unpkg.com/@ganuz/is-extensible/bundle.umd.min.js"></script>
let {
isExtensible
} = G;
Examples
isExtensible(null); // throw TypeError
isExtensible(1); // throw TypeError
isExtensible({}); // => true
isExtensible(Object.freeze{}); // => false
isExtensible(Object.seal{}); // => false
isExtensible(Object.preventExtensions{}); // => false
@ganuz/is-extensible/assert
Module
import {
default as assertExtensible
} from '@ganuz/is-extensible/assert';
Browser
<script src="https://unpkg.com/@ganuz/is-extensible/assert/bundle.umd.min.js"></script>
let {
assertExtensible
} = G;
Examples
assertExtensible(null); // throw TypeError
assertExtensible(Object.freeze{}); // throw TypeError
assertExtensible({}); // => {}
assertExtensible([1, 2, 3]); // => [1, 2, 3]
@ganuz/is-extensible/polyfill
Module
import '@ganuz/is-extensible/polyfill';
Browser
<script src="https://unpkg.com/@ganuz/is-extensible/polyfill/bundle.umd.min.js"></script>
License
Copyright © Yisrael Eliev, Licensed under the MIT license.