UNPKG

browsernizr

Version:

Modernizr wrapper for use with browserify

22 lines (20 loc) 529 B
/*! { "name": "ES5 String", "property": "es5string", "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 String per specification. */ var Modernizr = require('./../../lib/Modernizr.js'); Modernizr.addTest('es5string', function() { return !!(String.prototype && String.prototype.trim); });