Packages
A web application in pursuit of meaning in life.
Current section
Files
Jump to
Current section
Files
assets/node_modules/mout/src/string/endsWith.js
define(['../lang/toString'], function(toString) {
/**
* Checks if string ends with specified suffix.
*/
function endsWith(str, suffix) {
str = toString(str);
suffix = toString(suffix);
return str.indexOf(suffix, str.length - suffix.length) !== -1;
}
return endsWith;
});