Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better names for TrimStart and TrimEnd, i always get them the wrong way around a... #196

Open
github-actions bot opened this issue Sep 5, 2022 · 0 comments
Labels

Comments

@github-actions
Copy link

github-actions bot commented Sep 5, 2022

since there's also the Trim type which is for trimming whitespace

// TODO: better names for TrimStart and TrimEnd, i always get them the wrong way around and it's confusing

    ? Str
    : _TrimStart<Str extends `${Head<Str>}${infer R}` ? R : never, Index, Increment<Iterator>>

// TODO: better names for TrimStart and TrimEnd, i always get them the wrong way around and it's confusing
//  since there's also the Trim type which is for trimming whitespace
/**
 * trims the characters up to `Index` off the start of `String` (inclusive)
 * @example
@github-actions github-actions bot added the todo label Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants