Monday, October 1, 2018

javascript - how can splice item if item existing in array?

i have one line code like this




$scope.selectItem.push(item['id']);


now i want check if item['id'] existing in $scope.selectItem splice it.



any idea Honorable

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...