@appsemble/utils
Version:
Utility functions used in Appsemble internally
9 lines (8 loc) • 313 B
TypeScript
/**
* If the prefix is truthy, concatenate prefix and string. Otherwise, return string.
*
* @param string The string to add a conditional prefix to.
* @param p The string to add as a prefix.
* @returns The prefixed or unprefixed string.
*/
export declare function prefix(string: string, p: string): string;