Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork108
node's assert.deepEqual algorithm
License
NotificationsYou must be signed in to change notification settings
inspect-js/node-deep-equal
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Node'sassert.deepEqual() algorithm as a standalone module, that also works in browser environments.
It mirrors the robustness of node's ownassert.deepEqual and is robust against later builtin modification.
varequal=require('deep-equal');console.dir([equal({a :[2,3],b :[4]},{a :[2,3],b :[4]}),equal({x :5,y :[6]},{x :5,y :6})]);
vardeepEqual=require('deep-equal')
Compare objectsa andb, returning whether they are equal according to a recursive equality algorithm.
Ifopts.strict istrue, use strict equality (===) to compare leaf nodes.The default is to use coercive equality (==) because that's howassert.deepEqual() works by default.
Withnpm do:
npm install deep-equalWithnpm do:
npm testAbout
node's assert.deepEqual algorithm
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
