摘要: Array.of方法用于将一组值,转换为数组。 Array.from方法用于将两类对象转为真正的数组:类似数组的对象(array-like object)和可遍历(iterable)的对象(包括ES6新增的数据结构Set和Map)。 下面是一个类似数组的对象,Array.from将它转为真正的数组。 阅读全文
posted @ 2017-01-06 11:44 雨中伞 阅读(235) 评论(0) 推荐(0)
摘要: ES6之正则 Number Math 阅读全文
posted @ 2017-01-06 10:38 雨中伞 阅读(1016) 评论(0) 推荐(0)