Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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());
//=> true

isSet({});
//=> 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)