JSFiddle - React, Tailwind, and code Playground

by Norlihazmey Ghazali

JavaScript

var fruit = 'apple, orange, apricot'.split(', ');
  fruit = $.grep(fruit, function(item, index) {
  return item.charAt(0) === 'a';
  });
alert(fruit);