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