数组部分方法原理重写
map
1 | Array.prototye.map = function (cb) { |
filter
1 | Array.prototye.filter = function (cb) { |
reduce
1 | Array.prototye. |
some
1 | Array.prototye.some = function (cb) { |
every
1 | Array.prototye.every = function (cb) { |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
DisqusValine