Socket
Socket
Sign inDemoInstall

is-weakmap

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

1

index.js
'use strict';
module.exports = function (o) {
return Object.prototype.toString.call(o) === '[object WeakMap]';
};

12

package.json
{
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc