@monstermann/fn
Version:
A utility library for TypeScript.
22 lines (20 loc) • 415 B
JavaScript
import { dfdlT } from "@monstermann/dfdl";
//#region src/string/trimStart.ts
/**
* `trimStart(target)`
*
* Removes whitespace from the start of `target` string.
*
* ```ts
* trimStart(" hello world "); // "hello world "
* ```
*
* ```ts
* pipe(" hello world ", trimStart()); // "hello world "
* ```
*/
const trimStart = dfdlT((target) => {
return target.trimStart();
}, 1);
//#endregion
export { trimStart };