Files
Mario Romano 07807e7bc3 # add dist
2016-04-21 11:56:31 +01:00

11 lines
264 B
JavaScript

'use strict';
var reduce = Array.prototype.reduce;
module.exports = function (literals/*, …substitutions*/) {
var args = arguments;
return reduce.call(literals, function (a, b, i) {
return a + ((args[i] === undefined) ? '' : String(args[i])) + b;
});
};