DEV Community

Discussion on: 20 Killer JavaScript One Liners ☝️

Collapse
 
alexmelw profile image
Alex Melvin

Check if an array is not empty?
let arr = [];
arr?.some(x => x)