ARKI_STRING_E001
thrownThis error is thrown. It stops your code unless you catch it. Fix the cause below; catching it only hides the problem.
What happened
An argument is outside what the function accepts (empty needle, negative length, bad glyph).
Fix
Check the argument against the range in the function reference: a non-empty needle, a whole number of at least 0 for lengths.
Check the fix
bun run testRun it after the fix. It passes when the fix worked.
Where it comes from
- Package
- @arki/string
- Version
- 0.3.0 · next release candidate
- Source
- src/errors.ts:15