2 ms·
There are concepts like filtering that let you operate on booleans without branching: const published = posts.filter(post => !post.draft);
by jakelazaroff 4y ago
There are concepts like filtering that let you operate on booleans without branching:
const published = posts.filter(post => !post.draft);