| 12345678910111213141516171819202122232425262728293031 |
- /*!
- {
- "name": "ES5 Array",
- "property": "es5array",
- "notes": [{
- "name": "ECMAScript 5.1 Language Specification",
- "href": "https://www.ecma-international.org/ecma-262/5.1/"
- }],
- "polyfills": ["es5shim"],
- "authors": ["Ron Waldon (@jokeyrhyme)"],
- "tags": ["es5"]
- }
- !*/
- /* DOC
- Check if browser implements ECMAScript 5 Array per specification.
- */
- define(['Modernizr'], function(Modernizr) {
- Modernizr.addTest('es5array', function() {
- return !!(Array.prototype &&
- Array.prototype.every &&
- Array.prototype.filter &&
- Array.prototype.forEach &&
- Array.prototype.indexOf &&
- Array.prototype.lastIndexOf &&
- Array.prototype.map &&
- Array.prototype.some &&
- Array.prototype.reduce &&
- Array.prototype.reduceRight &&
- Array.isArray);
- });
- });
|