
export default class stringHelper {
    public static endsWithChar(word, c) {
        if (c.length > 1) {
            return c.indexOf(word.slice(-1)) > -1;
        }

        return word.slice(-1) === c;
    };

    public static endsWith(word, end) {
        return word.slice(word.length - end.length) === end;
    };

}