/is-weakmap

Node module to easily check if an object is an ES6 WeakMap

Primary LanguageJavaScriptMIT LicenseMIT

is-weakmap Build Status

Node module to easily check if an object is an ES6 WeakMap

Installation

$ npm install is-weakmap --save

Usage

const isWeakMap = require('is-weakmap');

isWeakMap(new WeakMap());
//=> true

isWeakMap({});
//=> false

Related

License

MIT © Arthur Verschaeve