CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
README.markdown71 linesDownload Raw Back to deep-is
1deep-is2==========3 4Node's `assert.deepEqual() algorithm` as a standalone module. Exactly like5[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 14example15=======16 17``` js18var 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 31methods32=======33 34var deepIs = require('deep-is')35 36deepIs(a, b)37---------------38 39Compare objects `a` and `b`, returning whether they are equal according to a40recursive equality algorithm.41 42install43=======44 45With [npm](http://npmjs.org) do:46 47```48npm install deep-is49```50 51test52====53 54With [npm](http://npmjs.org) do:55 56```57npm test58```59 60license61=======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.71 
basant307/AI_Governance_Project · CoolFace