DEV Community

Discussion on: 1 line of code: How to check if an Array is empty

Collapse
 
lizy0329 profile image
lizy0329

lodash not be user expects too

const arr = Array(2)
_.isEmpty(arr);
=>
false

Some comments have been hidden by the post's author - find out more