c5821b3f9d869de55de0d81d45d8e8f84e74b92b20e8a43b13c0eed327c07538.json 592 B

1
  1. {"ast":null,"code":"import isIndex from './_isIndex.js';\n\n/**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\nfunction baseNth(array, n) {\n var length = array.length;\n if (!length) {\n return;\n }\n n += n < 0 ? length : 0;\n return isIndex(n, length) ? array[n] : undefined;\n}\nexport default baseNth;","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}