1.0.0 • Published 10 years ago

bloody-is v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

is

browser support

Build Status

Object.is-like function.

ES6 Spec - 19.1.2.10

install

$ npm install bloody-is

require

var is = require("bloody-is")

api

is(val1, val2) > boolean

like a === comparison with the exception that :

  • comparing NaN with NaN will return true.
  • comparing +0 with -0 will return false

example

is(NaN, NaN) // true
is(+0, -0)  // false
is("foo", "foo") // true
is({}, {}) // false
1.0.0

10 years ago