How to remove particular value from jquery array?

By Hardik Savani | March 23, 2016 | | 28120 Viewer | Category : Javascript jQuery


When i was working on my code PHP project, at that time i need to remove specific items value from my javascript array. i did google search and solve that but i would like to share in my site how to remove value from javascript array. so, let's see how to use:

Example:

var languages = ['php', 'laravel', '.net', 'java', 'c#', 'javascript']

var deleteLanguage = 'laravel';

languages = jQuery.grep(languages, function(value) {

return value != deleteLanguage;

});

console.log(languages);



Hardik Savani
My name is Hardik Savani. I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.
***Do you want me hire for your Project Work? Then Contact US.