31a73f208bd4a3c5825cc868695358518db8d734
[platform/framework/web/crosswalk-tizen.git] /
1 define(['../lang/toString'], function(toString) {
2     /**
3      * Checks if string ends with specified suffix.
4      */
5     function endsWith(str, suffix) {
6         str = toString(str);
7         suffix = toString(suffix);
8
9         return str.indexOf(suffix, str.length - suffix.length) !== -1;
10     }
11
12     return endsWith;
13 });