mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Bump to v3.6.0.
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
define(['../internal/baseToString', '../internal/createPad'], function(baseToString, createPad) {
|
||||
define(['../internal/createPadDir'], function(createPadDir) {
|
||||
|
||||
/**
|
||||
* Pads `string` on the right side if it is shorter then the given padding
|
||||
* length. The `chars` string may be truncated if the number of padding
|
||||
* characters exceeds the padding length.
|
||||
* Pads `string` on the right side if it is shorter than `length`. Padding
|
||||
* characters are truncated if they exceed `length`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -23,10 +22,7 @@ define(['../internal/baseToString', '../internal/createPad'], function(baseToStr
|
||||
* _.padRight('abc', 3);
|
||||
* // => 'abc'
|
||||
*/
|
||||
function padRight(string, length, chars) {
|
||||
string = baseToString(string);
|
||||
return string && (string + createPad(string, length, chars));
|
||||
}
|
||||
var padRight = createPadDir(true);
|
||||
|
||||
return padRight;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user