JSFiddle - React, Tailwind, and code Playground

by ppgab

JavaScript

const a = [1,2,3,0,4,5,0,6];

console.log(a.map( n => {
  if(n > 0){
    return n
  }
  return false;
}))