Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

ns-tantamount

0.7.0 • Public • Published

Tantamount Build Status

This Node module is a port to CoffeeScript of the old isEqual implementation from underscore that was removed in this commit.

It is basically the same as underscore's current isEqual function except that it uses either value's isEqual function when available.

Installing

npm install tantamount

Using

isEqual = require 'tantamount'

isEqual(a, b)

Tests if a is equal to b.

a - A value to test.

b - A value to test.

Returns true if the two objects are equal, false otherwise.

Using with Jasmine

You can use this library as your Jasmine equality tester by doing:

jasmine.getEnv().addEqualityTester(require('tantamount'))

Using with Underscore

You can use this library to replace the default _.isEqual by doing:

require('underscore').isEqual = require('tantamount')

install

npm i ns-tantamount

Downloadsweekly downloads

3

version

0.7.0

license

BSD

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability