Return implicit undefined.

This commit is contained in:
John-David Dalton
2016-04-12 10:02:24 -07:00
parent 3c37f290a8
commit 97a437e8e6

View File

@@ -3304,7 +3304,7 @@
function baseNth(array, n) {
var length = array.length;
if (!length) {
return undefined;
return;
}
n += n < 0 ? length : 0;
return isIndex(n, length) ? array[n] : undefined;