mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Remove map examples from parseInt and trim (#3487)
This commit is contained in:
committed by
John-David Dalton
parent
c3b3c71b0a
commit
8464b184b7
@@ -23,9 +23,6 @@ const nativeParseInt = root.parseInt
|
|||||||
*
|
*
|
||||||
* parseInt('08')
|
* parseInt('08')
|
||||||
* // => 8
|
* // => 8
|
||||||
*
|
|
||||||
* map(['6', '08', '10'], parseInt)
|
|
||||||
* // => [6, 8, 10]
|
|
||||||
*/
|
*/
|
||||||
function parseInt(string, radix) {
|
function parseInt(string, radix) {
|
||||||
if (radix == null) {
|
if (radix == null) {
|
||||||
|
|||||||
3
trim.js
3
trim.js
@@ -19,9 +19,6 @@ import stringToArray from './.internal/stringToArray.js'
|
|||||||
*
|
*
|
||||||
* trim('-_-abc-_-', '_-')
|
* trim('-_-abc-_-', '_-')
|
||||||
* // => 'abc'
|
* // => 'abc'
|
||||||
*
|
|
||||||
* map([' foo ', ' bar '], trim)
|
|
||||||
* // => ['foo', 'bar']
|
|
||||||
*/
|
*/
|
||||||
function trim(string, chars) {
|
function trim(string, chars) {
|
||||||
if (string && chars === undefined) {
|
if (string && chars === undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user