From 23b60dc1975db38c280d8a123aff97544d1673e0 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:34:21 +0800 Subject: [PATCH] TODO#139890 FAQ 常見問題 1-文案調整 --- PAMapp/node_modules/core-js/internals/collection-of.js | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/PAMapp/node_modules/core-js/internals/collection-of.js b/PAMapp/node_modules/core-js/internals/collection-of.js index e68a107..b4b1054 100644 --- a/PAMapp/node_modules/core-js/internals/collection-of.js +++ b/PAMapp/node_modules/core-js/internals/collection-of.js @@ -1,8 +1,7 @@ 'use strict'; +var arraySlice = require('../internals/array-slice'); + // https://tc39.github.io/proposal-setmap-offrom/ module.exports = function of() { - var length = arguments.length; - var A = new Array(length); - while (length--) A[length] = arguments[length]; - return new this(A); + return new this(arraySlice(arguments)); }; -- Gitblit v1.8.0