UNPKG

@studiometa/js-toolkit

Version:

A set of useful little bits of JavaScript to boost your project! 🚀

9 lines (8 loc) • 257 B
/** * Test if a string starts with another string. * * This is a more performant version of the `String.prototype.endsWith` method. * * @see https://jsbench.me/1hlkqqd0ff/2 */ export declare function endsWith(string: string, search: string): boolean;