From 6c438a516dddf272aa720e201c10fa217843fc4a Mon Sep 17 00:00:00 2001 From: Tomasz Jakut Date: Thu, 11 Jul 2019 15:30:56 +0200 Subject: [PATCH] Simplify code. --- core/tools.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/tools.js b/core/tools.js index f4dec307d05..2ee3c211576 100644 --- a/core/tools.js +++ b/core/tools.js @@ -2096,11 +2096,6 @@ * @since 4.13.0 */ some: function( array, fn, thisArg ) { - // Empty arrays always return false. - if ( array.length === 0 ) { - return false; - } - for ( var i = 0; i < array.length; i++ ) { if ( fn.call( thisArg, array[ i ], i, array ) ) { return true;