import arrayPush from "./_arrayPush.js";
import isFlattenable from "./_isFlattenable.js";
function baseFlatten(array, depth, predicate, isStrict, result) {
  var index = -1, length = array.length;
  predicate || (predicate = isFlattenable);
  result || (result = []);
  while (++index < length) {
    var value = array[index];
    if (predicate(value)) {
      {
        arrayPush(result, value);
      }
    } else if (!isStrict) {
      result[result.length] = value;
    }
  }
  return result;
}
export {
  baseFlatten as default
};
//# sourceMappingURL=_baseFlatten.js.map
