-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
Closed
Labels
assertIssues and PRs related to the assert subsystem.Issues and PRs related to the assert subsystem.
Description
Using Object.create
method to create object.
How to compare them for equality or deep equality?
Use Object.getPrototypeOf
?
e.g.
var a = Object.create(null);
var b = Object.create({});
assert.deepEqual(a, b);
var a = Object.create({});
var b = Object.create({a:233});
assert.deepEqual(a, b);
Metadata
Metadata
Assignees
Labels
assertIssues and PRs related to the assert subsystem.Issues and PRs related to the assert subsystem.