88ae54536d1c3859bd362bf37c259d16d405cbf9
[platform/framework/web/crosswalk-tizen.git] /
1 define(['../lang/toString'], function (toString) {
2     /**
3      * Checks if string starts with specified prefix.
4      */
5     function startsWith(str, prefix) {
6         str = toString(str);
7         prefix = toString(prefix);
8
9         return str.indexOf(prefix) === 0;
10     }
11
12     return startsWith;
13 });