@monstermann/fn
Version:
A utility library for TypeScript.
20 lines • 391 B
TypeScript
//#region src/string/has.d.ts
/**
* `has(target, source)`
*
* Checks if `target` string contains `source` string.
*
* ```ts
* has("hello world", "world"); // true
* ```
*
* ```ts
* pipe("hello world", has("world")); // true
* ```
*/
declare const has: {
(source: string): (target: string) => boolean;
(target: string, source: string): boolean;
};
//#endregion
export { has };