functions
千分位
1 | function format(num) { |
pollyfills
Array.prototype.slice()
1 | Array.prototype.slicePollyfill = function() { |
Array.prototype.find()
Code
1 | Array.prototype.myFind = function(fn){ |
Usage
1 | var arr = ['A', 'B', 'C'] |
1 | function format(num) { |
1 | Array.prototype.slicePollyfill = function() { |
Code
1 | Array.prototype.myFind = function(fn){ |
Usage
1 | var arr = ['A', 'B', 'C'] |