mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
11 lines
264 B
JavaScript
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;
|
|
});
|
|
};
|