move arrayRemove to lang
This commit is contained in:
parent
a7963dc9a4
commit
c0540f7e1e
4 changed files with 15 additions and 16 deletions
|
|
@ -618,16 +618,4 @@ exports.rectsEqual = function(r1, r2, delta) {
|
|||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* splice out of 'array' anything that === 'value'
|
||||
*/
|
||||
exports.arrayRemove = function(array, value) {
|
||||
for (var i = 0; i <= array.length; i++) {
|
||||
if (value === array[i]) {
|
||||
array.splice(i, 1);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue