JSFiddle - React, Tailwind, and code Playground

by TimWolla

JavaScript

isEven = function (item) {
 return item % 2 == 0;
};

alert([1, 2, 3, 4, 5, 6].filter(isEven));