Closed ryan-barrett closed 6 years ago
Updated the truncate function in utils.js to include the last character.
Changed the function to use slice instead of substring.
#73
The last number given to truncate was being ignored by the function because of substring, but works with slice.
Tested with multiple arguments and edge cases using dev console. Tests are still passing.
Hey @ryan-barrett Thanks for your help! 🙂 Just a small issue here... You added package.json in the commit which is not needed, can you please remove it 😄
Sorry about that, It's been removed!
Updated the truncate function in utils.js to include the last character.
Description
Changed the function to use slice instead of substring.
Related Issue
#73
Motivation and Context
The last number given to truncate was being ignored by the function because of substring, but works with slice.
How Has This Been Tested?
Tested with multiple arguments and edge cases using dev console. Tests are still passing.
Types of changes
Checklist: