bloody-is

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i bloody-is

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bloodyowl