From 9bdb95c9e34cef640534e5e5a1e2225a80442000 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:48:15 +0800
Subject: [PATCH] TODO#139894 [ footer -最下方說明與保經代合作 ] 文案修改

---
 PAMapp/node_modules/core-js/internals/array-unique-by.js |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/PAMapp/node_modules/core-js/internals/array-unique-by.js b/PAMapp/node_modules/core-js/internals/array-unique-by.js
index 2e9a6ce..f79cebb 100644
--- a/PAMapp/node_modules/core-js/internals/array-unique-by.js
+++ b/PAMapp/node_modules/core-js/internals/array-unique-by.js
@@ -1,11 +1,17 @@
 'use strict';
+var getBuiltIn = require('../internals/get-built-in');
+var uncurryThis = require('../internals/function-uncurry-this');
 var aCallable = require('../internals/a-callable');
 var lengthOfArrayLike = require('../internals/length-of-array-like');
 var toObject = require('../internals/to-object');
-var getBuiltIn = require('../internals/get-built-in');
 var arraySpeciesCreate = require('../internals/array-species-create');
 
-var push = [].push;
+var Map = getBuiltIn('Map');
+var MapPrototype = Map.prototype;
+var mapForEach = uncurryThis(MapPrototype.forEach);
+var mapHas = uncurryThis(MapPrototype.has);
+var mapSet = uncurryThis(MapPrototype.set);
+var push = uncurryThis([].push);
 
 // `Array.prototype.uniqueBy` method
 // https://github.com/tc39/proposal-array-unique
@@ -13,20 +19,18 @@
   var that = toObject(this);
   var length = lengthOfArrayLike(that);
   var result = arraySpeciesCreate(that, 0);
-  var Map = getBuiltIn('Map');
   var map = new Map();
-  var resolverFunction, index, item, key;
-  if (resolver != null) resolverFunction = aCallable(resolver);
-  else resolverFunction = function (value) {
+  var resolverFunction = resolver != null ? aCallable(resolver) : function (value) {
     return value;
   };
+  var index, item, key;
   for (index = 0; index < length; index++) {
     item = that[index];
     key = resolverFunction(item);
-    if (!map.has(key)) map.set(key, item);
+    if (!mapHas(map, key)) mapSet(map, key, item);
   }
-  map.forEach(function (value) {
-    push.call(result, value);
+  mapForEach(map, function (value) {
+    push(result, value);
   });
   return result;
 };

--
Gitblit v1.8.0