src/index.js
function _removeItems(arry, obj) {
  arry = _arrayify(arry)
  obj = _arrayify(obj)
  let i = 0

  while (i < arry.length) {
    if (_contains(obj, arry[i])) {
      arry.splice(i, 1)
    } else {
      i++
    }
  }
  return arry
}
function _removeItems(arry, obj) {
  arry = _arrayify(arry)
  obj = _arrayify(obj)
  let i = 0

  while (i < arry.length) {
    if (_contains(obj, arry[i])) {
      arry.splice(i, 1)
    } else {
      i++
    }
  }
  return arry
}
function _removeItems ( arry , obj ) { arry = _arrayify ( arry ) obj = _arrayify ( obj ) let i = 0 while ( i < arry . length ) { if ( _contains ( obj , arry [ i ] ) ) { arry . splice ( i , 1 ) } else { i ++ } } return arry }
Removes all instances of items in the given obj
from the given arry.
@param {Array.<*>} arry
@param {*|Array.<*>} obj
@returns {Array.<*>} arry
@private
@examples
_removeItems(1, 2) // => [1]
_removeItems(1, [2,3]) // => [1]
_removeItems([1,2], 3) // => [1,2]
_removeItems([1,2], [3,4]) // => [1,2]
_removeItems([1,2], [3,1]) // => [2]
_removeItems([1,2], [1,2]) // => []
_removeItems([1,2,1,2,3], [2,3]) // => [1,1]
Removes all instances of items in the given obj from the given arry .