is-set-x

2.1.2 • Public • Published

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

is-set-x

Detect whether or not an object is an ES6 SET.

module.exports(object)boolean

Determine if an object is a Set.

Kind: Exported function
Returns: boolean - true if the object is a Set, else false.

Param Type Description
object * The object to test.

Example

import isSet from 'is-set-x';
 
const s = new Set();
 
console.log(isSet([])); // false
console.log(isSet(true)); // false
console.log(isSet(s)); // true

/is-set-x/

    Package Sidebar

    Install

    npm i is-set-x

    Weekly Downloads

    276

    Version

    2.1.2

    License

    MIT

    Unpacked Size

    311 kB

    Total Files

    11

    Last publish

    Collaborators

    • xotic750