@olton/string
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -435,3 +435,3 @@ /** | ||
let len = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; | ||
return _pad(s, len, pad, true); | ||
return _pad(s, pad, len, true); | ||
}; | ||
@@ -441,3 +441,3 @@ const rpad = function (s) { | ||
let len = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; | ||
return _pad(s, len, pad, false); | ||
return _pad(s, pad, len, false); | ||
}; | ||
@@ -444,0 +444,0 @@ const pad = function (s) { |
{ | ||
"name": "@olton/string", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "String is a minimalist JavaScript library for manipulating with strings for node and modern browsers with a comfortable modern API.", | ||
@@ -5,0 +5,0 @@ "main": "dist/string.js", |
@@ -29,7 +29,7 @@ import {toStr} from "../helpers/string/to_string" | ||
export const lpad = (s, pad = ' ', len = 0) => { | ||
return _pad(s, len, pad, true) | ||
return _pad(s, pad, len, true) | ||
} | ||
export const rpad = (s, pad = ' ', len = 0) => { | ||
return _pad(s, len, pad, false) | ||
return _pad(s, pad, len, false) | ||
} | ||
@@ -36,0 +36,0 @@ |
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
1333443
232