Sunday, June 3, 2018

Remove object from a JavaScript Array?


Possible Duplicate:
Remove specific element from a javascript array?






Specifically I have an array as follows:



var arr = [
{url: 'link 1'},

{url: 'link 2'},
{url: 'link 3'}
];


Now you want to remove valuable element url "link 2" and after removing the only arrays as follows:



arr = [
{url: 'link 1'},
{url: 'link 3'}

];


So who can help me this problem? Thanks a lot

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...