Array.from

Array.from([1, , 2, , 3], (n) => n || 0) // [1, 0, 2, 0, 3] function typesOf () { return Array.from(arguments, value => typeof value) } typesOf(null,
posted @ 2020-07-09 11:00  LaLaLa_heng  阅读(133)  评论(0编辑  收藏  举报