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) 250 B
var filter = require('..'); var test = require('tape'); test('filter', function(t) { var arr = [1, 2, 3, 4, 5]; delete arr.filter; var even = filter(arr, function(el) { return el % 2 == 0; }); t.deepEqual(even, [2, 4]); t.end(); });