Closed pkovzz closed 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
es-toolkit | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 1, 2024 7:39pm |
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.78%. Comparing base (
3a6cb36
) to head (daeb4e6
).
Solution
This pull request introduces a pad function that pads a string on both the left and right sides if it is shorter than the specified length. The padding characters are truncated if they cannot be evenly divided by the length.
Benchmark
Resolves #386