v.padLeft('bird', 6, '-'); in document tells result should be '--bird-', but browser result is "--bird"
caoglish opened this issue ยท 1 comments
caoglish commented
Welcome to Voca's GitHub repo!
Expected behavior ๐ธ
in document
https://github.com/panzerdp/voca/blob/master/src/manipulate/pad_left.js
https://vocajs.com/#padLeft
shows:
v.padLeft('bird', 6, '-');
// => '--bird-'
Actual behavior ๐ฟ
v.padLeft('bird', 6, '-');
resrult:
"--bird"
Steps to reproduce ๐ท
- brower access voca official document and open dev mode.
- tyep: v.padLeft('bird', 6, '-');
Technical details: ๐ง
Browser/OS type: firefox/chrome
comments
The document should be the mistake by my understand.