ubdate
This commit is contained in:
16
node_modules/memoizee/normalizers/get-primitive-fixed.js
generated
vendored
Normal file
16
node_modules/memoizee/normalizers/get-primitive-fixed.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
"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;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user