contains.js 365 B

1234567891011121314
  1. /*!
  2. {
  3. "name": "ES5 String.prototype.contains",
  4. "property": "contains",
  5. "authors": ["Robert Kowalski"],
  6. "tags": ["es6"]
  7. }
  8. !*/
  9. /* DOC
  10. Check if browser implements ECMAScript 6 `String.prototype.contains` per specification.
  11. */
  12. define(['Modernizr', 'is'], function(Modernizr, is) {
  13. Modernizr.addTest('contains', is(String.prototype.contains, 'function'));
  14. });