This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Utils = {}; | |
/** | |
Verifies that a value is `null` or `undefined`, an empty string, or an empty | |
array. | |
Constrains the rules on `isNone` by returning true for empty strings and | |
empty arrays. | |
If the value is an object with a `size` property of type number, it is used | |
to check emptiness. | |
```javascript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is not some kind of polyfill! It's just to prevent old browsers from failing horribly | |
var fallback = function() {}; | |
var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'profile', 'profileEnd', 'time', 'timeEnd', 'timeStamp', 'trace', 'warn', 'table']; | |
if(typeof console === 'undefined') { | |
var console = {}; | |
} | |
for(var i in methods) { |