x-is-object
Simple proper object test
Last updated 13 years ago by mattesch .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install x-is-object 
SYNC missed versions from official npm registry.

x-is-object

Simple proper object test - all objects that inherit Object except null

Example

var isObject = require("x-is-object")

isObject({})
// -> true

isObject([])
// -> true

isObject(/.*/)
// -> true

isObject(new RegExp(".*"))
// -> true

isObject(function () {})
// -> true

isObject(new Date())
// -> true

isObject(new String("hello"))
// -> true

isObject("hello")
// -> false

isObject("")
// -> false

isObject(9)
// -> false

isObject(true)
// -> false

isObject(null)
// -> false

isObject(undefined)
// -> false

Installation

npm install x-is-object

Contributors

  • Matt-Esch

MIT Licenced

Current Tags

  • 0.1.0                                ...           latest (13 years ago)

1 Versions

  • 0.1.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 6
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE