Skip to content

Instantly share code, notes, and snippets.

@KarateJB
Last active September 12, 2016 09:40
Show Gist options
  • Save KarateJB/8c3d800e208cb968393ccd1bd88e8e96 to your computer and use it in GitHub Desktop.
Save KarateJB/8c3d800e208cb968393ccd1bd88e8e96 to your computer and use it in GitHub Desktop.
[JS] Remove element from array.
var index = $scope.Agents.indexOf(agent);
$scope.Agents.splice(index, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment