mobro-utils
A collection of tools which I often use.
Last updated a year ago by mobro .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mobro-utils 
SYNC missed versions from official npm registry.

简单声明

个人手写、收集的一些比较实用的工具方法

使用方式

const utils = require('mobro-utils');
utils.deepClone({a: 1});

目前支持

deepClone(obj: any): any    // 深拷贝
debounce(fn: Function, wait: Number): Function      // 防抖
throttle(fn: Function, delay: Number): Function     // 节流
splitThousands(num: Number, fixed: Number): Number  // 千位分割

使用环境

>= ES6

Current Tags

  • 1.0.4                                ...           latest (a year ago)

5 Versions

  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |