Skip to content

Commit b268039

Browse files
committed
Fix typo
1 parent 6c258ab commit b268039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snippets/castArray.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ lastUpdated: 2020-09-15T16:28:04+03:00
99

1010
Casts the provided value as an array if it's not one.
1111

12-
- Use `Array.prototype.isArray()` to determine if `val` is an array and return it as-is or encapsulated in an array accordingly.
12+
- Use `Array.isArray()` to determine if `val` is an array and return it as-is or encapsulated in an array accordingly.
1313

1414
```js
1515
const castArray = val => (Array.isArray(val) ? val : [val]);

0 commit comments

Comments
 (0)