UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

13 lines (11 loc) 247 B
'use strict'; module.exports = function (length) { if (!length) { return function () { return ''; }; } return function (args) { var id = String(args[0]), i = 0, l = length; while (--l) { id += '\u0001' + args[++i]; } return id; }; };