* Remove an item from an array
(arr, item)
| 134 | * Remove an item from an array |
| 135 | */ |
| 136 | function remove(arr, item) { |
| 137 | if (arr.length) { |
| 138 | var index = arr.indexOf(item); |
| 139 | if (index > -1) { |
| 140 | return arr.splice(index, 1); |
| 141 | } |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | /** |
| 146 | * Check whether the object has the property. |
no test coverage detected