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