From 51990ed0e59d1f1229b0468ac2c5316e8d0cc458 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 18 Sep 2014 19:55:07 -0700 Subject: [PATCH] Fix failing IE9 test. --- lodash.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lodash.js b/lodash.js index bccb269c9..a991d12f7 100644 --- a/lodash.js +++ b/lodash.js @@ -7658,6 +7658,9 @@ if (object == null) { return []; } + if (!isObject(object)) { + object = Object(object); + } var length = object.length; length = (typeof length == 'number' && length > 0 && (isArray(object) || (support.nonEnumStrings && isString(object)) ||