From 613488eaf844ce68c9f10c8fa53a4c3ee6397d4a Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 25 Mar 2016 15:50:49 -0700 Subject: [PATCH] Use in instead of relying on behavior. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index ce3614931..811de35ca 100644 --- a/lodash.js +++ b/lodash.js @@ -3320,7 +3320,7 @@ */ function baseOrderBy(collection, iteratees, orders) { var index = -1; - iteratees = arrayMap(iteratees.length ? iteratees : Array(1), getIteratee()); + iteratees = arrayMap(iteratees.length ? iteratees : [identity], getIteratee()); var result = baseMap(collection, function(value, key, collection) { var criteria = arrayMap(iteratees, function(iteratee) {