00001 var baseNth = require('./_baseNth'), 00002 toInteger = require('./toInteger'); 00003 00025 function nth(array, n) { 00026 return (array && array.length) ? baseNth(array, toInteger(n)) : undefined; 00027 } 00028 00029 module.exports = nth;