inspect-js / Node Deep Equal
Licence: mit
node's assert.deepEqual algorithm
Stars: ✭ 577
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Node Deep Equal
assert matches
Provides macro `assert_matches` for testing pattern matching
Stars: ✭ 51 (-91.16%)
Mutual labels: assert
Symfony-code-snippets
Over 100 Symfony Code Snippets for PhP code And Over 80 Twig Code Snippets. Just type the letters 'sf' to get a list of all available Symfony Code Snippets. For Twig Just Type the Tag name and you will get AutoCompletion.
Stars: ✭ 15 (-97.4%)
Mutual labels: assert
coderbyte-challenges
ES 6/7 Javascript w/ Node - Coderbyte: tests-assert w/ working example
Stars: ✭ 1 (-99.83%)
Mutual labels: assert
Ava
Node.js test runner that lets you develop with confidence 🚀
Stars: ✭ 19,458 (+3272.27%)
Mutual labels: assert
earl
☕ Ergonomic, modern and type-safe assertion library for TypeScript
Stars: ✭ 217 (-62.39%)
Mutual labels: assert
Commonjs Assert
Node.js's require('assert') for all engines
Stars: ✭ 255 (-55.81%)
Mutual labels: assert
underscore.haz
🔍 _.haz() is like _.has() but this underscore and/or lodash mixin lets you do deep object key existence checking with a dot denoted string, for example 'a.b.c'
Stars: ✭ 13 (-97.75%)
Mutual labels: assert
Assertion
The power of Respect\Validation into an assertion library.
Stars: ✭ 23 (-96.01%)
Mutual labels: assert
phpstan-webmozart-assert
PHPStan extension for webmozart/assert
Stars: ✭ 132 (-77.12%)
Mutual labels: assert
Validator.js
⁉️轻量级的 JavaScript 表单验证,字符串验证。没有依赖,支持 UMD ,~3kb。
Stars: ✭ 486 (-15.77%)
Mutual labels: assert
Static Assertions Rs
Ensure correct assumptions about constants, types, and more in Rust
Stars: ✭ 363 (-37.09%)
Mutual labels: assert
deep-equal
Node's assert.deepEqual() algorithm
as a standalone module.
This module is around 46 times faster than wrapping assert.deepEqual()
in a try/catch
.
example
var equal = 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 }
)
]);
methods
var deepEqual = require('deep-equal')
deepEqual(a, b, opts)
Compare objects a
and b
, returning whether they are equal according to a
recursive equality algorithm.
If opts.strict
is true
, use strict equality (===
) to compare leaf nodes.
The default is to use coercive equality (==
) because that's how
assert.deepEqual()
works by default.
install
With npm do:
npm install deep-equal
test
With npm do:
npm test
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].