mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Use more destructuring.
This commit is contained in:
@@ -9,7 +9,7 @@ import isIndex from './isIndex.js'
|
||||
* @returns {*} Returns the nth element of `array`.
|
||||
*/
|
||||
function baseNth(array, n) {
|
||||
const length = array.length
|
||||
const { length } = array
|
||||
if (!length) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user