Skip to content

Commit

Permalink
correct comparison operator in Array.every() method
Browse files Browse the repository at this point in the history
  • Loading branch information
WooWan committed May 24, 2024
1 parent 783c25f commit 20f885d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/api/latest/core.json
Original file line number Diff line number Diff line change
Expand Up @@ -9782,7 +9782,7 @@
"kind": "value",
"name": "every",
"docstrings": [
"`every(array, predicate)` returns true if `predicate` returns true for all items in `array`.\n\nSee [`Array.every`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every) on MDN.\n\n## Examples\n```rescript\nlet array = [1, 2, 3, 4]\n\nConsole.log(array->Array.every(num => num < 4)) // true\nConsole.log(array->Array.every(num => num === 1)) // false\n```"
"`every(array, predicate)` returns true if `predicate` returns true for all items in `array`.\n\nSee [`Array.every`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every) on MDN.\n\n## Examples\n```rescript\nlet array = [1, 2, 3, 4]\n\nConsole.log(array->Array.every(num => num <= 4)) // true\nConsole.log(array->Array.every(num => num === 1)) // false\n```"
],
"signature": "let every: (array<'a>, 'a => bool) => bool"
},
Expand Down

0 comments on commit 20f885d

Please sign in to comment.