Skip to content

Commit

Permalink
Simplify code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Comandeer committed Jul 11, 2019
1 parent 72b900e commit 6c438a5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6c438a5

Please sign in to comment.