Skip to content

Commit

Permalink
remove Specifications section in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmagaram committed Mar 21, 2023
1 parent 6d36dbf commit a37c1b8
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/Core__Object.res
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
/**
`preventExtensions` prevents new properties from being added to the object. It modifies the object (rather than creating a copy) and returns it.
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)
## Examples
```rescript
Expand All @@ -34,9 +36,6 @@ obj->Object.set("b", 2) // succeeds
obj->Object.preventExtensions->ignore
obj->Object.set("c", 3) // fails
```
## Specifications
- [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.preventextensions)
- [Object.preventExtensions on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/preventExtensions)
*/
@val
external preventExtensions: 'a => 'a = "Object.preventExtensions"
Expand All @@ -45,19 +44,18 @@ external preventExtensions: 'a => 'a = "Object.preventExtensions"
@val external isSealed: 'a => bool = "Object.isSealed"
@val external isFrozen: 'a => bool = "Object.isFrozen"
/**
`isExtensible` determines if an object is extensible (whether it can have new properties added to it).
`isExtensible` determines if an object is extensible (whether it can have new properties added to it).
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)
## Examples
## Examples
```rescript
```rescript
let obj = {"a": 1}
obj->Object.isExtensible // true
obj->Object.preventExtensions->ignore
obj->Object.isExtensible // false
```
## Specifications
- [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.isextensible)
- [Object.isExtensible on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isExtensible)
*/
@val
external isExtensible: 'a => bool = "Object.isExtensible"

0 comments on commit a37c1b8

Please sign in to comment.