mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Add _.parseInt used with _.map doc example. [ci skip]
This commit is contained in:
@@ -9458,6 +9458,9 @@
|
|||||||
*
|
*
|
||||||
* _.parseInt('08');
|
* _.parseInt('08');
|
||||||
* // => 8
|
* // => 8
|
||||||
|
*
|
||||||
|
* _.map(['6', '08', '10'], _.parseInt);
|
||||||
|
* // => [6, 8, 10]
|
||||||
*/
|
*/
|
||||||
function parseInt(string, radix, guard) {
|
function parseInt(string, radix, guard) {
|
||||||
if (guard && isIterateeCall(string, radix, guard)) {
|
if (guard && isIterateeCall(string, radix, guard)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user