
Array.from() – Creates a new, shallow-copied Array from an array-like or iterable object.
๐ Syntax
Array.from(arrayLike[, mapFn[, thisArg]]);
๐งช Example
Array.from('abc'); // ['a','b','c']
Array.from() – Creates a new, shallow-copied Array from an array-like or iterable object.
Array.from(arrayLike[, mapFn[, thisArg]]);
Array.from('abc'); // ['a','b','c']
Comments
Post a Comment