jengine-utils
utils jstool example
Last updated 11 years ago by jgermade .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install jengine-utils 
SYNC missed versions from official npm registry.

jEngine: $utils wercker status

Bower version npm version Build Status Installation

npm install jengine-utils --save

or

bower install jengine-utils --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()

Current Tags

  • 0.0.26                                ...           latest (11 years ago)

4 Versions

  • 0.0.26                                ...           11 years ago
  • 0.0.25                                ...           11 years ago
  • 0.0.24                                ...           12 years ago
  • 0.0.23                                ...           12 years ago
Maintainers (1)
Downloads
Total 7
Today 0
This Week 1
This Month 7
Last Day 0
Last Week 6
Last Month 0
Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE