nitro-tools

nitro tools

MIT 25 个版本
安装
npm install nitro-tools
yarn add nitro-tools
pnpm add nitro-tools
bun add nitro-tools
README

nitro-tools wercker status

npm version Build Status

Installation

npm install nitro-tools --save

Usage

Underscore object '_' with useful functions

// comparators
  _.isFunction(object)
  _.isString(object)
  _.isNumber(object)
  _.isArray(object)
  _.isDate(object)
  _.isRegExp(object)
  _.isObject(object)

// key handling
  _.key(key, value)
  _.keys(object)  // alias of Object.keys

// object extend and copy
  _.extend(dest, obj1, obj2)
  _.merge(dest, obj1, obj2)
  _.copy(obj)

// object matches
  _.matchAll(obj, filter)
  _.matchAny(obj, filter)

// list filter
  _.find(list, filters) // returns first match in a list
  _.filter(list, filters)

// path handling
  _.joinPath(path1, path2, path3)

  _.each(list or object, iterator)
  _.indexOf(list, value or iterator)
  _.remove(list, value or iterator)

// pipe and chainig
  _.pipe()
  _.chain()

版本列表
0.2.4 2016-09-01
0.2.3 2016-09-01
0.2.2 2016-08-10
0.2.1 2016-08-02
0.2.0 2016-08-02
0.1.16 2016-08-02
0.1.15 2016-08-02
0.1.14 2016-08-01
0.1.13 2016-06-07
0.1.12 2016-06-04
0.1.11 2016-04-04
0.1.10 2016-02-19
0.1.9 2016-02-19
0.1.8 2016-02-17
0.1.7 2016-02-17
0.1.6 2016-02-11
0.1.5 2016-02-01
0.1.4 2016-01-29
0.1.3 2016-01-18
0.1.2 2016-01-13
0.1.1 2015-12-16
0.1.0 2015-12-16
0.0.3 2015-10-03
0.0.2 2015-09-30
0.0.1 2015-09-30