Skip to content

Commit 4ed0bbe

Browse files
committed
➖ remove object.equals
1 parent 65ca112 commit 4ed0bbe

30 files changed

+83
-118
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ Array {
6666
Object {
6767
forEach(callback: (element: any, index?: string) => any): void; // callback is called for every element in object
6868
map(callback: (element: any, index?: string) => any): this; // callback is called for every element in object and the result is returned as a new object
69-
static equals(x: any, y: any): boolean;
70-
equals(other: any): boolean; // checks if this Objects is the same with the other, WARNING this won't work with circular objects
7169
keys(): string[]; //returns keys of object itself
7270
entries(): Array<[string, any]>; // returns a nested array of key and corresponding value of object itself
7371
merge(obj: any): any; // returns a new object deeply merged with obj, the current will overwrite obj, if obj has the same property. Notice will not merge classes
@@ -208,9 +206,6 @@ let compareObj = {
208206
tester: 4,
209207
};
210208

211-
console.log(obj.equals(compareObj));
212-
// -> true
213-
214209
obj.forEach(console.log);
215210
// -> 2 test
216211
// -> 4 tester

dist/Array.js

Lines changed: 10 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Array.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Date.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Date.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Global.js

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Global.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Math.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Math.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Number.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)