tantamount
Is equal utility
Last updated 11 years ago by kevinsawicki .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ npm install tantamount 
SYNC missed versions from official npm registry.

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')

Current Tags

  • 0.8.0                                ...           latest (11 years ago)

8 Versions

  • 0.8.0                                ...           11 years ago
  • 0.7.0                                ...           11 years ago
  • 0.6.0                                ...           11 years ago
  • 0.5.0                                ...           11 years ago
  • 0.4.0                                ...           11 years ago
  • 0.3.0                                ...           11 years ago
  • 0.2.0                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (7)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE