mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Remove references to _.
This commit is contained in:
5
nth.js
5
nth.js
@@ -6,7 +6,6 @@ import toInteger from './toInteger.js';
|
||||
* element from the end is returned.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.11.0
|
||||
* @category Array
|
||||
* @param {Array} array The array to query.
|
||||
@@ -16,10 +15,10 @@ import toInteger from './toInteger.js';
|
||||
*
|
||||
* var array = ['a', 'b', 'c', 'd'];
|
||||
*
|
||||
* _.nth(array, 1);
|
||||
* nth(array, 1);
|
||||
* // => 'b'
|
||||
*
|
||||
* _.nth(array, -2);
|
||||
* nth(array, -2);
|
||||
* // => 'c';
|
||||
*/
|
||||
function nth(array, n) {
|
||||
|
||||
Reference in New Issue
Block a user