mirror of
https://github.com/BreizhHardware/memoizee.git
synced 2026-01-18 16:37:21 +01:00
Fix primitive handling for dynamic length
This commit is contained in:
@@ -17,8 +17,8 @@ module.exports = require('./_base')(function (conf, length) {
|
||||
if (length === 1) {
|
||||
get = conf.get = getId1;
|
||||
} else if (length === false) {
|
||||
get = conf.get = function (args, length) {
|
||||
var id = '', i;
|
||||
get = conf.get = function (args) {
|
||||
var id = '', i, length = args.length;
|
||||
if (length) {
|
||||
id += args[i = 0];
|
||||
while (--length) {
|
||||
|
||||
Reference in New Issue
Block a user