Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### isArrayLike
|
||||
---
|
||||
title: isArrayLike
|
||||
tags: type,array,intermediate
|
||||
---
|
||||
|
||||
Checks if the provided argument is array-like (i.e. is iterable).
|
||||
|
||||
@ -12,4 +15,4 @@ const isArrayLike = obj => obj != null && typeof obj[Symbol.iterator] === 'funct
|
||||
isArrayLike(document.querySelectorAll('.className')); // true
|
||||
isArrayLike('abc'); // true
|
||||
isArrayLike(null); // false
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user