SyntaxFix
Write A Post
Hire A Developer
Questions
var arr = [1, 2, 3]_x000D_ _x000D_ // ES5 syntax_x000D_ arr = arr.filter(function(item){ return item != 3 })_x000D_ _x000D_ // ES2015 syntax_x000D_ arr = arr.filter(item => item != 3)_x000D_ _x000D_ console.log( arr )