We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c258ab commit b268039Copy full SHA for b268039
snippets/castArray.md
@@ -9,7 +9,7 @@ lastUpdated: 2020-09-15T16:28:04+03:00
9
10
Casts the provided value as an array if it's not one.
11
12
-- Use `Array.prototype.isArray()` to determine if `val` is an array and return it as-is or encapsulated in an array accordingly.
+- Use `Array.isArray()` to determine if `val` is an array and return it as-is or encapsulated in an array accordingly.
13
14
```js
15
const castArray = val => (Array.isArray(val) ? val : [val]);
0 commit comments