Files
freeCodeCamp/guide/chinese/javascript/standard-objects/array/array-from/index.md
2018-10-16 21:32:40 +05:30

471 B
Raw Blame History

title, localeTitle
title localeTitle
Array from 数组来自

数组来自

'Array.from'方法从类似数组或可迭代的对象创建一个新的Array实例。

句法:

“”” Array.fromarrayLike [mapFn [thisArg]] “””

例:

“”” Array.from '富'; // [“f”“o”“o”] “””

更多信息:

MDN文档