https://github.com/lumakernel/string-util-ts
https://github.com/lumakernel/string-util-ts
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lumakernel/string-util-ts
- Owner: LumaKernel
- Created: 2025-03-06T16:37:33.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-03-06T16:37:58.000Z (10 months ago)
- Last Synced: 2025-06-17T00:55:22.840Z (6 months ago)
- Language: TypeScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# string-util-ts
# stringTrimStart
```ts
import { stringTrimStart } from "string-util-ts";
console.log(stringTrimStart("abc", "a")); // 'bc'
console.log(stringTrimStart("abc", "b")); // 'abc'
```
# stringTrimEnd
```ts
import { stringTrimEnd } from "string-util-ts";
console.log(stringTrimEnd("abc", "c")); // 'ab'
console.log(stringTrimEnd("abc", "b")); // 'abc'
```