x-is-object
Simple proper object test
Last updated 12 years ago by mattesch .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (12 years ago)

1 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |