function contains (array, item) {
  return array.indexOf(item) !== -1
}
Helper function to test whether an array contains an item
@param {Array} array
@param {*} item
@return {boolean} Returns true if `item` is in `array`, returns false otherwise.