-
I would like to pad a string (left or right) with another character. Particularly, I'd like to generate identifiers starting with zeros using Is this possible with mockoon helpers or faker.js? |
Beta Was this translation helpful? Give feedback.
Answered by
255kb
Nov 3, 2022
Replies: 1 comment 3 replies
-
I just looked at Faker documentation and there is no "pad" function. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Otiel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just looked at Faker documentation and there is no "pad" function.
We would have to add a
padLeft
helper for this.