Skip to content

Commit a37c1b8

Browse files
committed
remove Specifications section in docs
1 parent 6d36dbf commit a37c1b8

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/Core__Object.res

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
/**
2727
`preventExtensions` prevents new properties from being added to the object. It modifies the object (rather than creating a copy) and returns it.
2828
29+
See [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.preventextensions) and [Object.preventExtensions on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/preventExtensions)
30+
2931
## Examples
3032
3133
```rescript
@@ -34,9 +36,6 @@ obj->Object.set("b", 2) // succeeds
3436
obj->Object.preventExtensions->ignore
3537
obj->Object.set("c", 3) // fails
3638
```
37-
## Specifications
38-
- [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.preventextensions)
39-
- [Object.preventExtensions on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/preventExtensions)
4039
*/
4140
@val
4241
external preventExtensions: 'a => 'a = "Object.preventExtensions"
@@ -45,19 +44,18 @@ external preventExtensions: 'a => 'a = "Object.preventExtensions"
4544
@val external isSealed: 'a => bool = "Object.isSealed"
4645
@val external isFrozen: 'a => bool = "Object.isFrozen"
4746
/**
48-
`isExtensible` determines if an object is extensible (whether it can have new properties added to it).
47+
`isExtensible` determines if an object is extensible (whether it can have new properties added to it).
48+
49+
See [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.isextensible) and [Object.isExtensible on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isExtensible)
4950
50-
## Examples
51+
## Examples
5152
52-
```rescript
53+
```rescript
5354
let obj = {"a": 1}
5455
obj->Object.isExtensible // true
5556
obj->Object.preventExtensions->ignore
5657
obj->Object.isExtensible // false
5758
```
58-
## Specifications
59-
- [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.isextensible)
60-
- [Object.isExtensible on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isExtensible)
6159
*/
6260
@val
6361
external isExtensible: 'a => bool = "Object.isExtensible"

0 commit comments

Comments
 (0)