Skip to content

Commit 2741d73

Browse files
committed
change recommendation text
1 parent 5db75f0 commit 2741d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core__Object.res

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
`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.
55
6-
**Note:** In most scenarios use `==` and `===`. If the type you want to compare by value has an `equals` function, use it.
6+
**Note:** In most scenarios use `==` or `===` or the custom `equals` function (if provided) for the type.
77
88
The `==` operator [is different in ReScript than Javascript](https://rescript-lang.org/docs/manual/latest/overview#boolean). Arrays, records and other non-primitives are equal if they have the same contents (deep equality).
99

0 commit comments

Comments
 (0)