UNPKG

wat

Version:

Community-controlled cheat sheets for every coder.

13 lines (9 loc) 279 B
## Array.from(arrayLike[, mapFn[, thisArg]]) Returns an array from an array-like or iterable object. ```js const elements = Array.from(document.querySelectorAll('*')); const element = elements[0]; ```js ```js const arr = Array.from('abc'); // ['a', 'b', 'c']; ```