source: imaps-frontend/node_modules/deep-is/README.markdown@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 1.4 KB
Line 
1deep-is
2==========
3
4Node's `assert.deepEqual() algorithm` as a standalone module. Exactly like
5[deep-equal](https://github.com/substack/node-deep-equal) except for the fact that `deepEqual(NaN, NaN) === true`.
6
7This module is around [5 times faster](https://gist.github.com/2790507)
8than wrapping `assert.deepEqual()` in a `try/catch`.
9
10[![browser support](http://ci.testling.com/thlorenz/deep-is.png)](http://ci.testling.com/thlorenz/deep-is)
11
12[![build status](https://secure.travis-ci.org/thlorenz/deep-is.png)](http://travis-ci.org/thlorenz/deep-is)
13
14example
15=======
16
17``` js
18var equal = require('deep-is');
19console.dir([
20 equal(
21 { a : [ 2, 3 ], b : [ 4 ] },
22 { a : [ 2, 3 ], b : [ 4 ] }
23 ),
24 equal(
25 { x : 5, y : [6] },
26 { x : 5, y : 6 }
27 )
28]);
29```
30
31methods
32=======
33
34var deepIs = require('deep-is')
35
36deepIs(a, b)
37---------------
38
39Compare objects `a` and `b`, returning whether they are equal according to a
40recursive equality algorithm.
41
42install
43=======
44
45With [npm](http://npmjs.org) do:
46
47```
48npm install deep-is
49```
50
51test
52====
53
54With [npm](http://npmjs.org) do:
55
56```
57npm test
58```
59
60license
61=======
62
63Copyright (c) 2012, 2013 Thorsten Lorenz <thlorenz@gmx.de>
64Copyright (c) 2012 James Halliday <mail@substack.net>
65
66Derived largely from node's assert module, which has the copyright statement:
67
68Copyright (c) 2009 Thomas Robinson <280north.com>
69
70Released under the MIT license, see LICENSE for details.
Note: See TracBrowser for help on using the repository browser.