code: function removeFromArray(arr, selector) {
          var idx = arr.indexOf(selector);
          if (idx !== -1) {
              return arr.splice(idx, 1);
          }
          return false;
      }
docs: Removes an element from an array. String value: the value to search and remove. return: an array with the removed element; false otherwise.