JSFiddle - React, Tailwind, and code Playground

by Sibeesh Venu

JavaScript

var myArray = ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday']
var excludedElement = ['Thursday'];

myArray = jQuery.grep(myArray, function(value) {
      return value != excludedElement;
});
console.log('My New Array Contents Are : '+myArray);