1.0.0 • Published 11 years ago
bloody-is v1.0.0
is
Object.is-like function.
install
$ npm install bloody-isrequire
var is = require("bloody-is")api
is(val1, val2) > boolean
like a === comparison with the exception that :
- comparing
NaNwithNaNwill returntrue. - comparing
+0with-0will returnfalse
example
is(NaN, NaN) // true
is(+0, -0) // false
is("foo", "foo") // true
is({}, {}) // false1.0.0
11 years ago
