README.md (2043B)
1 # deep-eql [](https://travis-ci.org/chaijs/deep-eql) [](https://coveralls.io/r/chaijs/deep-eql?branch=master) 2 3 > Improved deep equality testing for Node.js and the browser. 4 5 ## Installation 6 7 ### Node.js 8 9 `deep-eql` is available on [npm](http://npmjs.org). 10 11 $ npm install deep-eql 12 13 ### Component 14 15 `deep-eql` is available as a [component](https://github.com/component/component). 16 17 $ component install chaijs/deep-eql 18 19 ## Usage 20 21 ### Rules 22 23 - Strict equality for non-traversable nodes according to [egal](http://wiki.ecmascript.org/doku.php?id=harmony:egal). 24 - `eql(NaN, NaN).should.be.true;` 25 - `eql(-0, +0).should.be.false;` 26 - Arguments are not Arrays: 27 - `eql([], arguments).should.be.false;` 28 - `eql([], Array.prototype.slice.call(arguments)).should.be.true;` 29 30 ## License 31 32 (The MIT License) 33 34 Copyright (c) 2013 Jake Luer <jake@alogicalparadox.com> 35 36 Permission is hereby granted, free of charge, to any person obtaining a copy 37 of this software and associated documentation files (the "Software"), to deal 38 in the Software without restriction, including without limitation the rights 39 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 40 copies of the Software, and to permit persons to whom the Software is 41 furnished to do so, subject to the following conditions: 42 43 The above copyright notice and this permission notice shall be included in 44 all copies or substantial portions of the Software. 45 46 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 47 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 48 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 49 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 50 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 51 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 52 THE SOFTWARE.