From d4ac9d842c8417a3cbe3ba864ab014e66066d0f0 Mon Sep 17 00:00:00 2001 From: archmoj Date: Thu, 19 Aug 2021 11:10:06 -0400 Subject: [PATCH] reduce accessing key --- lib/util/extend.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/util/extend.js b/lib/util/extend.js index 62da09e0..21476abf 100644 --- a/lib/util/extend.js +++ b/lib/util/extend.js @@ -1,7 +1,8 @@ module.exports = function (base, opts) { var keys = Object.keys(opts) for (var i = 0; i < keys.length; ++i) { - base[keys[i]] = opts[keys[i]] + var k = keys[i] + base[k] = opts[k] } return base }