You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/assert/deepEqual.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
layout: default
3
3
title: deepEqual
4
-
description: A deep recursive comparison, working on primitive types, arrays, objects, regular expressions, dates and functions.
4
+
description: A deep recursive strict comparison, working on primitive types, arrays, objects, regular expressions, dates and functions considering all own and inherited properties.
5
5
categories:
6
6
- assert
7
7
redirect_from:
@@ -10,7 +10,7 @@ redirect_from:
10
10
11
11
## `deepEqual( actual, expected [, message ] )`
12
12
13
-
A deep recursive comparison, working on primitive types, arrays, objects, regular expressions, dates and functions.
13
+
A deep recursive strict comparison, working on primitive types, arrays, objects, regular expressions, dates and functions considering all own and inherited properties.
@@ -24,6 +24,8 @@ The `deepEqual()` assertion can be used just like `equal()` when comparing the v
24
24
25
25
[`notDeepEqual()`](/assert/notDeepEqual) can be used to explicitly test deep, strict inequality.
26
26
27
+
[`propEqual()`](/assert/propEqual) can be used to explicitly test deep, strict equality but only considering own properties. `deepEqual()` compares all inherited properties.
0 commit comments