docs: function removeFromArray(arr, condition) {
      var number = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
  
      if (!(0, _is.isArray)(arr)) throw new Error('arr should be arr but got ' + (typeof arr === 'undefined' ? 'undefined' : (0, _typeof3.default)(arr)));
      var items = [];
      if ((0, _is.isNumber)(condition)) {
          return condition < arr.length ? arr.splice(condition, number) : items;
      }
      if ((0, _is.isFunction)(condition)) {
          for (var i = 0; i < arr.length; i++) {
              var res = false;
              try {
                  res = condition(arr[i]);
              } catch (e) {
                  res = false;
              }
              if (res) {
                  items.push(arr.splice(i, 1)[0]);
                  i--;
              }
          }
          return items;
      }
      return items;
  }