
static.js.vendor.modernizr.src.contains.js Maven / Gradle / Ivy
The newest version!
define(function() {
/**
* contains checks to see if a string contains another string
*
* @access private
* @function contains
* @param {string} str - The string we want to check for substrings
* @param {string} substr - The substring we want to search the first string for
* @returns {boolean}
*/
function contains(str, substr) {
return !!~('' + str).indexOf(substr);
}
return contains;
});
© 2015 - 2025 Weber Informatics LLC | Privacy Policy