From a84e44b2a30c19e24c7307873334b438ab1801a9 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 15 Sep 2015 23:48:36 -0700 Subject: [PATCH] Use `MAX_ARRAY_LENGTH` instead of `INFINITY` for the default `__takeCount__` value. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index a5d9e8dd1..fb1168490 100644 --- a/lodash.js +++ b/lodash.js @@ -1587,7 +1587,7 @@ this.__dir__ = 1; this.__filtered__ = false; this.__iteratees__ = []; - this.__takeCount__ = INFINITY; + this.__takeCount__ = MAX_ARRAY_LENGTH; this.__views__ = []; }