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