50 JavaScript One-Liners I Actually Use

Why this list? Because tiny utilities save hours when you’re manipulating arrays, cleaning strings, nudging dates, or wiring quick UI glue…