Skip to content

Latest commit

 

History

History
executable file
·
12 lines (9 loc) · 279 Bytes

File metadata and controls

executable file
·
12 lines (9 loc) · 279 Bytes

Array.from(arrayLike[, mapFn[, thisArg]])

Returns an array from an array-like or iterable object.

const elements = Array.from(document.querySelectorAll('*'));
const element = elements[0];
```js

```js
const arr = Array.from('abc'); // ['a', 'b', 'c'];