mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Fix doc nits for _.nth. [ci skip]
This commit is contained in:
committed by
John-David Dalton
parent
7e885a4ddd
commit
ef67e07732
10
lodash.js
10
lodash.js
@@ -3303,9 +3303,9 @@
|
||||
* The base implementation of `_.nth` which doesn't coerce `n` to an integer.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to inspect.
|
||||
* @param {Array} array The array to query.
|
||||
* @param {number} n The index of the element to return.
|
||||
* @returns {*} Returns the nth element.
|
||||
* @returns {*} Returns the nth element of `array`.
|
||||
*/
|
||||
function baseNth(array, n) {
|
||||
var length = array.length;
|
||||
@@ -6685,9 +6685,9 @@
|
||||
* @memberOf _
|
||||
* @since 4.11.0
|
||||
* @category Array
|
||||
* @param {Array} array The array to inspect.
|
||||
* @param {number} [n=0] The index of the element to return..
|
||||
* @returns {*} Returns the nth element.
|
||||
* @param {Array} array The array to query.
|
||||
* @param {number} [n=0] The index of the element to return.
|
||||
* @returns {*} Returns the nth element of `array`.
|
||||
* @example
|
||||
*
|
||||
* var array = ['a', 'b', 'c', 'd'];
|
||||
|
||||
Reference in New Issue
Block a user