Horje
js any array Code Example
js any array
 
// There's no isEmpty or any method. 
// You can define your own .isEmpty() or .any()

Array.prototype.isEmpty = function() {
    return this.length === 0;
}

Array.prototype.any = function(func) {
   return this.some(func || function(x) { return x });
}




Javascript

Related
speech to text in js Code Example speech to text in js Code Example
how to find out what a string ends with in javascript Code Example how to find out what a string ends with in javascript Code Example
if else statement Code Example if else statement Code Example
toggle buttons angular styles Code Example toggle buttons angular styles Code Example
javascript find object in array by multiple property values Code Example javascript find object in array by multiple property values Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7