1.0.1 • Published 7 years ago

@krab/isuseableobject v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

isuseableobject

v1.0.1

We follow breaking.feature.fix versioning

npm install --save @krab/isuseableobject

This module provides a simple function that can be used to check that whether a given variable can be used as an object. Usage given below.

import isuseableobject from '@krab/isuseableobject'; // in projects with ES7 modules
const isuseableobject = require('@krab/isuseableobject/common'); // in projects with common JS modules

isuseableobject({}); // returns true
isuseableobject(1); // returns false