no message

This commit is contained in:
A1300399510
2024-05-15 12:05:24 +08:00
parent e2dd1310d3
commit a2b20f1738
917 changed files with 203 additions and 98762 deletions

View File

@@ -1,20 +0,0 @@
import isIndex from './_isIndex.js';
/**
* The base implementation of `_.nth` which doesn't coerce arguments.
*
* @private
* @param {Array} array The array to query.
* @param {number} n The index of the element to return.
* @returns {*} Returns the nth element of `array`.
*/
function baseNth(array, n) {
var length = array.length;
if (!length) {
return;
}
n += n < 0 ? length : 0;
return isIndex(n, length) ? array[n] : undefined;
}
export default baseNth;