npm.io
2.0.2 • Published 4 years ago

ant-util

Licence
ISC
Version
2.0.2
Deps
3
Size
874 kB
Vulns
6
Weekly
0

Ant Util

a javascript function expressions util including practical function.

Features

  • an javascript util handle function,object,array,etc.
  • written in function expressions style.
  • simple test case ant rich api document.
Environment Support
  • Browser: Modern browsers support ecmascript 5
Install
npm install ant-util --save
Usage
import util from 'ant-util'
const { map } = util

map({ name: 'ant', age: 13 }, (value, key) => `my ${key} is ${value}`)

// => {name: 'my name is ant', age: 'my age is 13'}

Ant import style manually:

import { map } from 'ant-util/lib/object'
Development
$ git clone https://github.com/antgod/ant-util.git
$ cd ant-util && npm install
API Usage(to be continue)