Monday 1 October 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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...