Skip to content

Commit 2d0fb2c

Browse files
committed
remove Specifications section
1 parent 8f6db7c commit 2d0fb2c

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/Core__Object.res

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
@obj external empty: unit => {..} = ""
22

33
/**
4-
`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.
4+
`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. See [Object.is on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is)
55
6-
**Note:** In most scenarios use `==` or `===` or the custom `equals` function (if provided) for the type.
6+
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
10-
In ReScript, the `===` operator performs a strict equality check, like Javascript, and is similar but not identical to `Object.is`; see [Mozilla](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
10+
In ReScript, the `===` operator performs a strict equality check, like Javascript, and is similar but not identical to `is`
1111
1212
## Examples
1313
@@ -29,11 +29,6 @@ Object.is(fruit, {"name": "Apple" }) // false
2929
fruit == {"name": "Apple" } // true
3030
fruit === {"name": "Apple" } // false
3131
```
32-
## Specifications
33-
34-
- [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.is)
35-
- [`Object.is on MDN`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is)
36-
- [Equality operators in ReScript](https://rescript-lang.org/docs/manual/latest/overview#boolean)
3732
*/
3833
@val
3934
external is: ('a, 'b) => bool = "Object.is"

0 commit comments

Comments
 (0)