mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Remove references to _.
This commit is contained in:
7
pad.js
7
pad.js
@@ -12,7 +12,6 @@ const nativeFloor = Math.floor;
|
||||
* Padding characters are truncated if they can't be evenly divided by `length`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.0.0
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to pad.
|
||||
@@ -21,13 +20,13 @@ const nativeFloor = Math.floor;
|
||||
* @returns {string} Returns the padded string.
|
||||
* @example
|
||||
*
|
||||
* _.pad('abc', 8);
|
||||
* pad('abc', 8);
|
||||
* // => ' abc '
|
||||
*
|
||||
* _.pad('abc', 8, '_-');
|
||||
* pad('abc', 8, '_-');
|
||||
* // => '_-abc_-_'
|
||||
*
|
||||
* _.pad('abc', 3);
|
||||
* pad('abc', 3);
|
||||
* // => 'abc'
|
||||
*/
|
||||
function pad(string, length, chars) {
|
||||
|
||||
Reference in New Issue
Block a user