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: src/Core__Object.res
+1-2
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
1
@objexternalempty: unit=> {..} =""
2
2
3
3
/**
4
-
`Object.is` determines if two objects are identical in all contexts. Objects, arrays, records, and other non-primitives are only identical if they reference the **exact** same object in memory. Primitives like ints, floats, and strings are identical if they have the same value. `+0` and `-0` are distinct. NaN is
5
-
equal to itself.
4
+
`Object.is` determines if two objects are identical in all contexts. Objects, arrays, records, and other non-primitives are only identical if they reference the **exact** same object in memory. Primitives like ints, floats, and strings are identical if they have the same value. `+0` and `-0` are distinct. NaN is equal to itself.
6
5
7
6
**Note:** In most scenarios use `==` and `===`. If the type you want to compare by value has an `equals` function, use it.
0 commit comments