Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arthurvr/is-set
Node module to easily check if an object is an ES6 set
https://github.com/arthurvr/is-set
Last synced: 3 days ago
JSON representation
Node module to easily check if an object is an ES6 set
- Host: GitHub
- URL: https://github.com/arthurvr/is-set
- Owner: arthurvr
- License: mit
- Created: 2015-02-18T11:14:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-09T16:21:42.000Z (about 9 years ago)
- Last Synced: 2024-08-05T09:14:54.454Z (3 months ago)
- Language: JavaScript
- Size: 166 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# is-set [![Build Status](https://travis-ci.org/arthurvr/is-set.svg?branch=master)](https://travis-ci.org/arthurvr/is-set)
> Node module to easily check if an object is [an ES6 `Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set)
## Installation
```
$ npm install --save is-set
```## Usage
```javascript
const isSet = require('is-set');isSet(new Set());
//=> trueisSet({});
//=> false
```## Related
* [`is-weakset`](https://github.com/arthurvr/is-weakset)
* [`is-map`](https://github.com/arthurvr/is-map)
* [`is-weakmap`](https://github.com/arthurvr/is-weakset)## License
MIT © [Arthur Verschaeve](http://arthurverschaeve.be)