ant-util

ant工具组件

Usage no npm install needed!

<script type="module">
  import antUtil from 'https://cdn.skypack.dev/ant-util';
</script>

README

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)