* Remove an item from an array
(arr, item)
| 52 | * Remove an item from an array |
| 53 | */ |
| 54 | function remove (arr, item) { |
| 55 | if (arr.length) { |
| 56 | var index = arr.indexOf(item); |
| 57 | if (index > -1) { |
| 58 | return arr.splice(index, 1) |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * Check whether the object has the property. |
no outgoing calls
no test coverage detected