mirror of
https://github.com/biobulkbende/biobulkbende.org.git
synced 2024-09-28 08:36:03 +00:00
17 lines
281 B
JavaScript
17 lines
281 B
JavaScript
"use strict";
|
|
|
|
module.exports = function (length) {
|
|
if (!length) {
|
|
return function () {
|
|
return "";
|
|
};
|
|
}
|
|
return function (args) {
|
|
var id = String(args[0]), i = 0, currentLength = length;
|
|
while (--currentLength) {
|
|
id += "\u0001" + args[++i];
|
|
}
|
|
return id;
|
|
};
|
|
};
|