JSFiddle - React, Tailwind, and code Playground

by emrefatih47

JavaScript

var arr = [1, 2, 3, 4, 5, 5];

var result = arr.filter(function(elem){
   return elem != 5; 
});

alert(result);