1.0.6 • Published 2 years ago

extra-method v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago
// es6 before  
require('extra-method')
// es6 after  
import 'extra-method'

".fasterMap()" method fast then ".map()"

The ".fasterMap()" method is almost twice as fast as the ".map()" ten. Usage is the same.

var arr = [1, 4, 3, 3, 9, 11]
arr.fastermap(x => x > 5)
return 9, 11

".remove()" method

var arr = [1, 4, 3, 3, 9, 11]
arr.remove(3)
return [1, 4, 3, 9, 11]

".removeAll()" method

var arr = [1, 4, 3, 3, 9, 11]
arr.removeAll(3)
return [1, 4, 9, 11]
1.0.6

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.5

2 years ago