From 8922372f4b8d0b0d9fed28b381e67fbddcd2aea1 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 26 Dec 2014 13:39:30 -0600 Subject: [PATCH] Make `_.unzip` use `baseProperty`. --- lodash.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index 9b6d8f3b0..ca1f6d14a 100644 --- a/lodash.js +++ b/lodash.js @@ -902,7 +902,8 @@ /** Used to resolve the decompiled source of functions. */ var fnToString = Function.prototype.toString; - var getLength = property('length'); + /** Used to the length of n-tuples for `_.unzip`. */ + var getLength = baseProperty('length'); /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; @@ -5107,7 +5108,7 @@ result = Array(length); while (++index < length) { - result[index] = arrayMap(array, property(index)); + result[index] = arrayMap(array, baseProperty(index)); } return result; }