mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
18
react-app/node_modules/lodash/internal/createPadDir.js
generated
vendored
Normal file
18
react-app/node_modules/lodash/internal/createPadDir.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
var baseToString = require('./baseToString'),
|
||||
createPadding = require('./createPadding');
|
||||
|
||||
/**
|
||||
* Creates a function for `_.padLeft` or `_.padRight`.
|
||||
*
|
||||
* @private
|
||||
* @param {boolean} [fromRight] Specify padding from the right.
|
||||
* @returns {Function} Returns the new pad function.
|
||||
*/
|
||||
function createPadDir(fromRight) {
|
||||
return function(string, length, chars) {
|
||||
string = baseToString(string);
|
||||
return (fromRight ? string : '') + createPadding(string, length, chars) + (fromRight ? '' : string);
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = createPadDir;
|
Reference in New Issue
Block a user