is-weakmap
Advanced tools
Comparing version 1.0.0 to 1.0.1
'use strict'; | ||
module.exports = function (o) { | ||
return Object.prototype.toString.call(o) === '[object WeakMap]'; | ||
}; |
{ | ||
"name": "is-weakmap", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Easily check if a givin object is an ES6 WeakMap", | ||
@@ -21,10 +21,16 @@ "keywords": [ | ||
"scripts": { | ||
"test": "node test/test.js" | ||
"test": "xo && node test.js" | ||
}, | ||
"devDependencies": { | ||
"ava": "^0.0.4" | ||
"ava": "0.0.4", | ||
"xo": "*" | ||
}, | ||
"engines": { | ||
"node": ">=0.12.0" | ||
}, | ||
"xo": { | ||
"envs": [ | ||
"node" | ||
] | ||
} | ||
} |
@@ -5,2 +5,3 @@ # is-weakmap [![Build Status](https://travis-ci.org/arthurvr/is-weakmap.svg?branch=master)](https://travis-ci.org/arthurvr/is-weakmap) | ||
## Installation | ||
@@ -24,4 +25,12 @@ | ||
## Related | ||
* [`is-map`](https://github.com/arthurvr/is-map) | ||
* [`is-set`](https://github.com/arthurvr/is-set) | ||
* [`is-weakset`](https://github.com/arthurvr/is-weakset) | ||
## License | ||
MIT © Arthur Verschaeve | ||
MIT © [Arthur Verschaeve](http://arthurverschaeve.be) |
2504
35
2