SyntaxFix
Write A Post
Hire A Developer
Questions
Very late answer, but this is how you could handle it with prototypes.
Array.prototype.Any = function(func) { return this.some(func || function(x) { return x }); } Object.prototype.IsAny = function() { return Object.keys(this).Any(); }