-
Couldn't load subscription status.
- Fork 1
space
Subhajit Sahu edited this page May 5, 2020
·
1 revision
Returns a string of spaces.
-
5x Faster than
' '.repeat(n). - Uses cache &
substr.
var space = require('@extra-string/space');
// space(<length>)
space(4); // ' '
space(6); // ' '
space(0); // ''
space(-1); // ''