@studiometa/js-toolkit
Version:
A set of useful little bits of JavaScript to boost your project! 🚀
10 lines (9 loc) • 328 B
TypeScript
/**
* Test if a string starts with another string.
*
* This is a more performant version of the `String.prototype.endsWith` method.
*
* @link https://jsbench.me/1hlkqqd0ff/2
* @link https://js-toolkit.studiometa.dev/utils/string/endsWith.html
*/
export declare function endsWith(string: string, search: string): boolean;