Created
May 21, 2012 10:29
-
-
Save spadgos/2761737 to your computer and use it in GitHub Desktop.
A check to see if augment.js is required
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
var methods = { | |
'every': Array.prototype.every, | |
'filter': Array.prototype.filter, | |
'forEach': Array.prototype.forEach, | |
'indexOf': Array.prototype.indexOf, | |
'isArray': Array.isArray, | |
'lastIndexOf': Array.prototype.lastIndexOf, | |
'map': Array.prototype.map, | |
'reduce': Array.prototype.reduce, | |
'reduceRight': Array.prototype.reduceRight, | |
'some': Array.prototype.some, | |
'now': Date.now, | |
'toISOString': Date.prototype.toISOString, | |
'toJSON': Date.prototype.toJSON, | |
'bind': Function.prototype.bind, | |
'getPrototypeOf': Object.getPrototypeOf, | |
'keys': Object.keys, | |
'trim': String.prototype.trim | |
}; | |
for (var i in methods) { | |
console.log(i + ': ' + (methods[i] ? 'OK' : 'FAIL')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment