IMO the utility of this function depends on how you interpret an array being "empty": if you pass an array of empty items the result may not be what the user expects
let arr = Array(2) // [ <2 empty items> ] isEmptyArray(arr) // false
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
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
IMO the utility of this function depends on how you interpret an array being "empty": if you pass an array of empty items the result may not be what the user expects
lodash not be user expects too
const arr = Array(2)
_.isEmpty(arr);
=>
false