You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Core__Object.res
+7-9Lines changed: 7 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,8 @@
26
26
/**
27
27
`preventExtensions` prevents new properties from being added to the object. It modifies the object (rather than creating a copy) and returns it.
28
28
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)
@@ -45,19 +44,18 @@ external preventExtensions: 'a => 'a = "Object.preventExtensions"
45
44
@valexternalisSealed: 'a=>bool="Object.isSealed"
46
45
@valexternalisFrozen: 'a=>bool="Object.isFrozen"
47
46
/**
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)
49
50
50
-
## Examples
51
+
## Examples
51
52
52
-
```rescript
53
+
```rescript
53
54
let obj = {"a": 1}
54
55
obj->Object.isExtensible // true
55
56
obj->Object.preventExtensions->ignore
56
57
obj->Object.isExtensible // false
57
58
```
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)
0 commit comments