- this module collect common useful functions
- btw, yi is a chinese word 'ๆ', which means easy.
npm install yi
- isEmpty
- clone
- merge
- filter
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