mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-18 07:31:04 +00:00
15 lines
365 B
JavaScript
15 lines
365 B
JavaScript
/*!
|
|
{
|
|
"name": "ES5 String.prototype.contains",
|
|
"property": "contains",
|
|
"authors": ["Robert Kowalski"],
|
|
"tags": ["es6"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Check if browser implements ECMAScript 6 `String.prototype.contains` per specification.
|
|
*/
|
|
define(['Modernizr', 'is'], function(Modernizr, is) {
|
|
Modernizr.addTest('contains', is(String.prototype.contains, 'function'));
|
|
});
|