mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Remove references to _.
This commit is contained in:
@@ -16,19 +16,18 @@ const nativeParseInt = root.parseInt;
|
||||
* [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 1.1.0
|
||||
* @category String
|
||||
* @param {string} string The string to convert.
|
||||
* @param {number} [radix=10] The radix to interpret `value` by.
|
||||
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
||||
* @param- {Object} [guard] Enables use as an iteratee for methods like `map`.
|
||||
* @returns {number} Returns the converted integer.
|
||||
* @example
|
||||
*
|
||||
* _.parseInt('08');
|
||||
* parseInt('08');
|
||||
* // => 8
|
||||
*
|
||||
* _.map(['6', '08', '10'], _.parseInt);
|
||||
* map(['6', '08', '10'], parseInt);
|
||||
* // => [6, 8, 10]
|
||||
*/
|
||||
function parseInt(string, radix, guard) {
|
||||
|
||||
Reference in New Issue
Block a user