0.1.0 • Published 10 years ago

yi v0.1.0

Weekly downloads
9
License
MIT
Repository
github
Last release
10 years ago

Yi

  • this module collect common useful functions
  • btw, yi is a chinese word '易', which means easy.

install

npm install yi

members

  • isEmpty
  • clone
  • merge
  • filter

usage

  var yi = require('yi');

  yi.isEmpty(undefined); // true
  yi.isEmpty(null); // true
  yi.isEmpty(''); // true
  yi.isEmpty([]); // true
  yi.isEmpty({}); // true

  yi.jsEmpty(new Date()); // false
  yi.isEmpty(Math); // false
  yi.isEmpty(/hello/); // false

please see the test files