This package has been deprecated

Author message:

move to @the-/util-array ( https://github.com/the-labo/the/tree/master/packages/util-array#readme )

the-array

1.4.1 • Public • Published

the-array

Build Status npm Version JS Standard

Array utility of the-framework

Installation

$ npm install the-array --save

Usage

'use strict'
 
const {
  uniqueFilter,
  keyPathMap 
= require('the-array')
 
async function tryExample () {
 
  console.log(
    ['foo', 'bar', 'foo'].filter(uniqueFilter()) // => ['foo', 'bar']
  )
 
  console.log(
    [{foo: {bar: 10}}, {foo: {bar: 20}}].map(keyPathMap('foo.bar')) // => [10,20]
  )
}
 
tryExample().catch((err) => console.error(err))
 

API Guide

License

This software is released under the MIT License.

Links

/the-array/

    Package Sidebar

    Install

    npm i the-array

    Weekly Downloads

    37

    Version

    1.4.1

    License

    MIT

    Unpacked Size

    60.2 kB

    Total Files

    45

    Last publish

    Collaborators

    • okunishinishi