mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Bump to v3.0.1.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import baseToString from './baseToString';
|
||||
import repeat from '../string/repeat';
|
||||
import root from './root';
|
||||
|
||||
@@ -27,7 +26,7 @@ function createPad(string, length, chars) {
|
||||
return '';
|
||||
}
|
||||
var padLength = length - strLength;
|
||||
chars = chars == null ? ' ' : baseToString(chars);
|
||||
chars = chars == null ? ' ' : (chars + '');
|
||||
return repeat(chars, ceil(padLength / chars.length)).slice(0, padLength);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user