JSFiddle - React, Tailwind, and code Playground
by bogdan_vq
JavaScript
const isPar = nr=>!(nr&1);
const nrs = [1,2,3,4,5,6,7].map(isPar);
console.log(nrs);
by bogdan_vq
const isPar = nr=>!(nr&1);
const nrs = [1,2,3,4,5,6,7].map(isPar);
console.log(nrs);