lodash._createpad
Advanced tools
Comparing version 3.0.0 to 3.0.1
17
index.js
@@ -11,17 +11,2 @@ /** | ||
/** | ||
* Converts `value` to a string if it is not one. An empty string is returned | ||
* for `null` or `undefined` values. | ||
* | ||
* @private | ||
* @param {*} value The value to process. | ||
* @returns {string} Returns the string. | ||
*/ | ||
function baseToString(value) { | ||
if (typeof value == 'string') { | ||
return value; | ||
} | ||
return value == null ? '' : (value + ''); | ||
} | ||
/** Native method references. */ | ||
@@ -52,3 +37,3 @@ var ceil = Math.ceil; | ||
var padLength = length - strLength; | ||
chars = chars == null ? ' ' : baseToString(chars); | ||
chars = chars == null ? ' ' : (chars + ''); | ||
return repeat(chars, ceil(padLength / chars.length)).slice(0, padLength); | ||
@@ -55,0 +40,0 @@ } |
{ | ||
"name": "lodash._createpad", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "The modern build of lodash’s internal `createPad` as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash._createpad v3.0.0 | ||
# lodash._createpad v3.0.1 | ||
@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `createPad` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._createpad) for more details. | ||
See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._createpad) for more details. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4098
35