object-extends
1.2.0 • Public • Published Object-extends
Install
npm i object-extends --save
Usage
require('object-extends')
import 'object-extends'
Extends For Array
Array.prototype.asyncMap
Array.prototype.asyncEach
Array.prototype.asyncFind
Array.prototype.asyncSome
Array.prototype.asyncEvery
Array.prototype.unique
Array.prototype.remove
Array.prototype.near
Array.prototype.nearIndex
Example
async function test() {
let keys = await arr.asyncMap(async item => await item.key())
console.log(keys)
}
test()
Package Sidebar
Install
Weekly Downloads