Name: js-handler/node_modules/restify/node_modules/deep-equal/README.markdown
| 1: | deep-equal |
| 2: | ========== |
| 3: | |
| 4: | Node's `assert.deepEqual() algorithm` as a standalone module. |
| 5: | |
| 6: | example |
| 7: | ======= |
| 8: | |
| 9: | ``` js |
| 10: | var equal = require('deep-equal'); |
| 11: | console.dir([ |
| 12: | equal( |
| 13: | { a : [ 2, 3 ], b : [ 4 ] }, |
| 14: | { a : [ 2, 3 ], b : [ 4 ] } |
| 15: | ), |
| 16: | equal( |
| 17: | { x : 5, y : [6] }, |
| 18: | { x : 5, y : 6 } |
| 19: | ) |
| 20: | ]); |
| 21: | ``` |
| 22: | |
| 23: | methods |
| 24: | ======= |
| 25: | |
| 26: | var deepEqual = require('deep-equal') |
| 27: | |
| 28: | deepEqual(a, b) |
| 29: | --------------- |
| 30: | |
| 31: | Compare objects `a` and `b`, returning whether they are equal according to a |
| 32: | recursive equality algorithm. |
| 33: | |
| 34: | install |
| 35: | ======= |
| 36: | |
| 37: | With [npm](http://npmjs.org) do: |
| 38: | |
| 39: | ``` |
| 40: | npm install deep-equal |
| 41: | ``` |
| 42: | |
| 43: | test |
| 44: | ==== |
| 45: | |
| 46: | With [npm](http://npmjs.org) do: |
| 47: | |
| 48: | ``` |
| 49: | npm test |
| 50: | ``` |
| 51: | |
| 52: | license |
| 53: | ======= |
| 54: | |
| 55: | MIT. Derived largely from node's assert module. |
