Opal-Estate-Pro/node_modules/memoizee/normalizers/get-primitive-fixed.js

17 lines
281 B
JavaScript
Raw Normal View History

2019-09-13 04:44:33 +02:00
"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;
};
};