From d308bce09fa5f3712490bf7a05a199128f96e3b7 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 4 Oct 2016 00:32:15 -0700 Subject: [PATCH] Add `isTypedArray` check to `_.isEmpty`. --- lodash.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index b7e61b051..ea90ad0e6 100644 --- a/lodash.js +++ b/lodash.js @@ -11403,8 +11403,8 @@ */ function isEmpty(value) { if (isArrayLike(value) && - (isArray(value) || typeof value == 'string' || - typeof value.splice == 'function' || isBuffer(value) || isArguments(value))) { + (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || + isBuffer(value) || isTypedArray(value) || isArguments(value))) { return !value.length; } var tag = getTag(value);