mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Bump to v4.11.2.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import baseRepeat from './_baseRepeat';
|
||||
import baseToString from './_baseToString';
|
||||
import castSlice from './_castSlice';
|
||||
import reHasComplexSymbol from './_reHasComplexSymbol';
|
||||
import stringSize from './_stringSize';
|
||||
@@ -17,7 +18,7 @@ var nativeCeil = Math.ceil;
|
||||
* @returns {string} Returns the padding for `string`.
|
||||
*/
|
||||
function createPadding(length, chars) {
|
||||
chars = chars === undefined ? ' ' : (chars + '');
|
||||
chars = chars === undefined ? ' ' : baseToString(chars);
|
||||
|
||||
var charsLength = chars.length;
|
||||
if (charsLength < 2) {
|
||||
|
||||
Reference in New Issue
Block a user