From 6c8988ab69222f6c3334100beb8dbaae66ccce9d Mon Sep 17 00:00:00 2001 From: jdalton Date: Sat, 23 May 2015 16:15:12 -0700 Subject: [PATCH] Use `POSITIVE_INFINITY` and `NEGATIVE_INFINITY` more. --- lodash.src.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lodash.src.js b/lodash.src.js index a5093c884..797bf7638 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -7107,7 +7107,7 @@ * // => [4, 1, 3, 2] */ function shuffle(collection) { - return sample(collection, Infinity); + return sample(collection, POSITIVE_INFINITY); } /** @@ -11796,7 +11796,7 @@ * _.max(users, 'age'); * // => { 'user': 'fred', 'age': 40 } */ - var max = createExtremum(gt, -Infinity); + var max = createExtremum(gt, NEGATIVE_INFINITY); /** * Gets the minimum value of `collection`. If `collection` is empty or falsey @@ -11845,7 +11845,7 @@ * _.min(users, 'age'); * // => { 'user': 'barney', 'age': 36 } */ - var min = createExtremum(lt, Infinity); + var min = createExtremum(lt, POSITIVE_INFINITY); /** * Gets the sum of the values in `collection`.