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 (9 loc) 291 B
'use strict'; var toArray = require('es5-ext/array/to-array') , Set = require('../../'); module.exports = function (t, a) { var content = ['raz', 2, true], set = new Set(content), copy; copy = t.call(set); a.not(copy, set, "Copy"); a.deep(toArray(copy), content, "Content"); };