Is there a better way in Javascript to check for multiple elements for their length. I want to check length of following arrays if they are greater than 0, I do:
a=[]; b=[1,2,3]; c=[db, gf, gf]; d=[]; e=[1,2,3]; f=[db, gf, gf]; g=[44,56,77];
h=[1,2,3]; i=[db, gf, gf];j=[]; e=[1,2,3]; k=[db, gf, gf]; l=[44,56,77];
m=[1,2,3]; n=[db, gf, gf]
So in total I have 14 arrays of diff values for diff condition and I want to apply just one solution to all of them if length ===0.
if (a.length === 0 || b.length === 0|| c.length === 0|| d.length < 0|| e.length === 0|| f.length === 0|| g.length === 0|| h.length === 0|| i.length === 0|| j.length === 0|| k.length === 0|| l.length === 0|| m.length === 0|| n.length === 0){
// set some field to false
}
is there a better way to check length, as this may get cumbersome if we have more arrays added Thanks!
===, updated!