[BUG]: string/truncate
behaves abnormally when truncating strings to length 3
#2630
Closed
2 tasks done
Labels
Bug
Something isn't working.
Description
Encountered an error when truncating strings to length 3.
Demo
Reproduction
Expected Results
Actual Results
Version
https://github.com/stdlib-js/stdlib/tree/c89a171db9b4664582fab09dc95a5cc3b58f9f21
Environments
Node.js
Node.js / npm Version
Node @20.13.1, npm @10.5.2
Platform
Ubuntu 20.04.6 LTS (container)
Checklist
The text was updated successfully, but these errors were encountered: