Remove checks for the Map existence (#4091)

This commit is contained in:
Luiz Américo
2018-11-30 13:09:58 -03:00
committed by John-David Dalton
parent 377e2d87c8
commit 3b199c30e0
2 changed files with 2 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ class Stack {
let data = this.__data__
if (data instanceof ListCache) {
const pairs = data.__data__
if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
if (pairs.length < LARGE_ARRAY_SIZE - 1) {
pairs.push([key, value])
this.size = ++data.size
return this