mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Return implicit undefined.
This commit is contained in:
@@ -3304,7 +3304,7 @@
|
|||||||
function baseNth(array, n) {
|
function baseNth(array, n) {
|
||||||
var length = array.length;
|
var length = array.length;
|
||||||
if (!length) {
|
if (!length) {
|
||||||
return undefined;
|
return;
|
||||||
}
|
}
|
||||||
n += n < 0 ? length : 0;
|
n += n < 0 ? length : 0;
|
||||||
return isIndex(n, length) ? array[n] : undefined;
|
return isIndex(n, length) ? array[n] : undefined;
|
||||||
|
|||||||
Reference in New Issue
Block a user