Skip to content

Commit b37ce6b

Browse files
committed
remove Specifications section
1 parent bfa541f commit b37ce6b

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

src/Core__Object.res

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
2828
**Note:** `seal` returns the same object that was passed in; it does not create a copy. Any attempt to delete or add properties to a sealed object will fail, either silently or by throwing an error.
2929
30+
See [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.seal) and [Object.seal on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/seal)
31+
3032
## Examples
3133
3234
```rescript
@@ -36,32 +38,26 @@ point->Object.seal->ignore
3638
point->Object.set("z", 9) // fails
3739
point->Object.set("x", 13) // succeeds
3840
```
39-
## Specifications
40-
- [Updating objects in Rescript](https://rescript-lang.org/docs/manual/latest/object#update)
41-
- [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.seal)
42-
- [Object.seal on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/seal)
4341
*/
4442
@val
4543
external seal: 'a => 'a = "Object.seal"
4644
@val external preventExtensions: 'a => 'a = "Object.preventExtensions"
4745
@val external freeze: 'a => 'a = "Object.freeze"
4846

4947
/**
50-
`isSealed` determines if an object is sealed. A sealed object has a fixed set of properties.
51-
52-
## Examples
53-
54-
```rescript
55-
let point = {"x": 1, "y": 3}->Object.seal
56-
let pointIsSealed = point->Object.isSealed // true
57-
let fruit = {"name": "Apple" }
58-
let fruitIsSealed = fruit->Object.isSealed // false
59-
```
60-
## Specifications
61-
- [Updating objects in Rescript](https://rescript-lang.org/docs/manual/latest/object#update)
62-
- [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.issealed)
63-
- [Object.isSealed on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isSealed)
64-
*/
48+
`isSealed` determines if an object is sealed. A sealed object has a fixed set of properties.
49+
50+
See [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.issealed) and [Object.isSealed on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isSealed)
51+
52+
## Examples
53+
54+
```rescript
55+
let point = {"x": 1, "y": 3}->Object.seal
56+
let pointIsSealed = point->Object.isSealed // true
57+
let fruit = {"name": "Apple" }
58+
let fruitIsSealed = fruit->Object.isSealed // false
59+
```
60+
*/
6561
@val
6662
external isSealed: 'a => bool = "Object.isSealed"
6763
@val external isFrozen: 'a => bool = "Object.isFrozen"

0 commit comments

Comments
 (0)