Skip to content

Commit

Permalink
Simple removeArray function
Browse files Browse the repository at this point in the history
  • Loading branch information
awick committed Apr 1, 2015
1 parent a9af17c commit 5adaddd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions viewer/public/common.js
Expand Up @@ -73,6 +73,15 @@ function ipString(ip) {
return (ip>>24 & 0xff) + '.' + (ip>>16 & 0xff) + '.' + (ip>>8 & 0xff) + '.' + (ip & 0xff);
}

function removeArray(arr, value) {
var pos = 0;
while ((pos = arr.indexOf(value, pos)) !== -1) {
arr.splice(pos, 1);
}
return arr;
}


function parseUrlParams() {
var urlParams = {};
var e,
Expand Down

0 comments on commit 5adaddd

Please sign in to comment.