Skip to content

Commit cc569a3

Browse files
committed
Undo change to Completion.res.txt
1 parent 43e5c68 commit cc569a3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/analysis_tests/tests/src/expected/Completion.res.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,12 @@ Path Array.
328328
"tags": [],
329329
"detail": "(array<'a>, int) => 'a",
330330
"documentation": {"kind": "markdown", "value": "\n`getUnsafe(array, index)` returns the element at `index` of `array`.\n\nThis is _unsafe_, meaning it will return `undefined` value if `index` does not exist in `array`.\n\nUse `Array.getUnsafe` only when you are sure the `index` exists (i.e. when using for-loop).\n\n## Examples\n```rescript\nlet array = [1, 2, 3]\nfor index in 0 to array->Array.length - 1 {\n let value = array->Array.getUnsafe(index)\n Console.log(value)\n}\n```\n"}
331+
}, {
332+
"label": "entries",
333+
"kind": 12,
334+
"tags": [],
335+
"detail": "array<'a> => Iterator.t<(int, 'a)>",
336+
"documentation": {"kind": "markdown", "value": "\n`entries(array)` returns a new array iterator object that contains the key/value pairs for each index in the array.\n\nSee [Array.prototype.entries](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries) on MDN.\n\n## Examples\n\n```rescript\nlet array = [5, 6, 7]\nlet iterator : Iterator.t<(int, int)> = array->Array.entries\niterator->Iterator.next->assertEqual({done: false, value: Some((0, 5))})\niterator->Iterator.next->assertEqual({done: false, value: Some((1, 6))})\n```\n"}
331337
}, {
332338
"label": "unshiftMany",
333339
"kind": 12,
@@ -376,6 +382,12 @@ Path Array.
376382
"tags": [],
377383
"detail": "'a => bool",
378384
"documentation": null
385+
}, {
386+
"label": "values",
387+
"kind": 12,
388+
"tags": [],
389+
"detail": "array<'a> => Iterator.t<'a>",
390+
"documentation": {"kind": "markdown", "value": "\n`values(array)` returns a new array iterator object that contains the values for each index in the array.\n\nSee [Array.prototype.values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/values) on MDN.\n\n## Examples\n\n```rescript\nlet array = [5, 6, 7]\nlet iterator : Iterator.t<int> = array->Array.values\niterator->Iterator.next->assertEqual({done: false, value: Some(5)})\niterator->Iterator.next->assertEqual({done: false, value: Some(6)})\n```\n "}
379391
}, {
380392
"label": "indexOfOpt",
381393
"kind": 12,

0 commit comments

Comments
 (0)