e81022b869a258319611a1b9128abcdff8634d5d
[platform/framework/web/crosswalk-tizen.git] /
1 define(['./indexOf'], function(indexOf){
2
3     /**
4      * Remove all instances of an item from array.
5      */
6     function removeAll(arr, item){
7         var idx = indexOf(arr, item);
8         while (idx !== -1) {
9             arr.splice(idx, 1);
10             idx = indexOf(arr, item, idx);
11         }
12     }
13
14     return removeAll;
15 });