Skip to content

Commit

Permalink
no Specifications header in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmagaram committed Mar 21, 2023
1 parent 2b52a04 commit 8856175
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Core__Object.res
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,16 @@
@set_index external setSymbol: ({..}, Core__Symbol.t, 'a) => unit = ""

/**
`keysToArray` returns an array of an object's own enumerable string-keyed property names.
`keysToArray` returns an array of an object's own enumerable string-keyed property names. See [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.keys)
or [Object.keys on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys).
## Examples
```rescript
{"a": 1, "b": 2}->Object.keysToArray // ["a", "b"]
{"a": None}->Object.keysToArray // ["a"]Object.empty()->Object.keysToArray // []
{"a": None}->Object.keysToArray // ["a"]
Object.empty()->Object.keysToArray // []
```
## Specifications
- [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.keys)
- [Object.keys on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys)
*/
@val
external keysToArray: {..} => array<string> = "Object.keys"
Expand Down

0 comments on commit 8856175

Please sign in to comment.