<commit_before>import { mergeArray } from 'most'
import { isArrayLike, map } from '@most/prelude'

export const combineEpics = epicsArray => (actions, store) => {
  if (epicsArray && !isArrayLike(epicsArray)) {
    throw new TypeError('You must provide an array of Epics to combineEpics')
  }

  if (epicsArray.length < 1) {
    throw new TypeError('The array passed to combineEpics must contain at least one Epic')
  }

  const callEpic = epic => {
    if (typeof epic !== 'function') {
      throw new TypeError('The array passed to combineEpics must contain only Epics (functions)')
    }

    return epic(actions, store)
  }<commit_msg>Fix combineEpics first error check<commit_after>import { mergeArray } from 'most'
import { isArrayLike, map } from '@most/prelude'

export const combineEpics = epicsArray => (actions, store) => {
  if (!epicsArray || !isArrayLike(epicsArray)) {
    throw new TypeError('You must provide an array of Epics to combineEpics')
  }

  if (epicsArray.length < 1) {
    throw new TypeError('The array passed to combineEpics must contain at least one Epic')
  }

  const callEpic = epic => {
    if (typeof epic !== 'function') {
      throw new TypeError('The array passed to combineEpics must contain only Epics (functions)')
    }

    return epic(actions, store)
  }
{'fraction_non_alphanumeric': 0.10675883256528418, 'fraction_numerical': 0.0015360983102918587, 'mean_word_length': 3.8801498127340825, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5282979', 'n_tokens_mistral': 404, 'n_tokens_neox': 385, 'n_words': 138}