UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

13 lines (11 loc) 244 B
var filter = require('..'); var test = require('tape'); test('skip over holes', function(t) { var arr = new Array(5); delete arr.filter; var res = filter(arr, function(el) { return false; }); t.deepEqual(res, []); t.end(); });