From 81b28d005d391877cb107be52b8c1ba65bafce14 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 27 Jun 2012 13:51:46 -0400 Subject: [PATCH] Remove `arguments` object from `_.range`. Former-commit-id: d3da531e33bcd00a00ff80986f56196ac1b6f2c5 --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 4a0b2a72c..4b61b8747 100644 --- a/lodash.js +++ b/lodash.js @@ -1472,7 +1472,7 @@ */ function range(start, end, step) { step || (step = 1); - if (arguments.length < 2) { + if (end == null) { end = start || 0; start = 0; }