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-from.js |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/PAMapp/node_modules/core-js/internals/collection-from.js b/PAMapp/node_modules/core-js/internals/collection-from.js
index 548e098..748714b 100644
--- a/PAMapp/node_modules/core-js/internals/collection-from.js
+++ b/PAMapp/node_modules/core-js/internals/collection-from.js
@@ -1,9 +1,12 @@
 'use strict';
 // https://tc39.github.io/proposal-setmap-offrom/
+var bind = require('../internals/function-bind-context');
+var call = require('../internals/function-call');
 var aCallable = require('../internals/a-callable');
 var aConstructor = require('../internals/a-constructor');
-var bind = require('../internals/function-bind-context');
 var iterate = require('../internals/iterate');
+
+var push = [].push;
 
 module.exports = function from(source /* , mapFn, thisArg */) {
   var length = arguments.length;
@@ -16,12 +19,12 @@
   array = [];
   if (mapping) {
     n = 0;
-    boundFunction = bind(mapFn, length > 2 ? arguments[2] : undefined, 2);
+    boundFunction = bind(mapFn, length > 2 ? arguments[2] : undefined);
     iterate(source, function (nextItem) {
-      array.push(boundFunction(nextItem, n++));
+      call(push, array, boundFunction(nextItem, n++));
     });
   } else {
-    iterate(source, array.push, { that: array });
+    iterate(source, push, { that: array });
   }
   return new this(array);
 };

--
Gitblit v1.8.0