packages/core/lib/configSetters.js
function assertConfigSetters(configSetters) {
  if (!Array.isArray(configSetters)) {
    throw new Error(
      `Expected parameter 'configSetters' to be an array of functions. Instead got ${configSetters}.`
    )
  }
  if (!configSetters.every(_.isFunction)) {
    const invalidElementIndex = configSetters.findIndex(setter => !_.isFunction(setter))
    throw new Error(
      `Expected parameter 'configSetters' to be an array of functions. ` +
        `Element at index ${invalidElementIndex} is invalid: ${configSetters[invalidElementIndex]}.`
    )
  }
}
function assertConfigSetters(configSetters) {
  if (!Array.isArray(configSetters)) {
    throw new Error(
      `Expected parameter 'configSetters' to be an array of functions. Instead got ${configSetters}.`
    )
  }
  if (!configSetters.every(_.isFunction)) {
    const invalidElementIndex = configSetters.findIndex(setter => !_.isFunction(setter))
    throw new Error(
      `Expected parameter 'configSetters' to be an array of functions. ` +
        `Element at index ${invalidElementIndex} is invalid: ${configSetters[invalidElementIndex]}.`
    )
  }
}
function assertConfigSetters ( configSetters ) { if ( ! Array . isArray ( configSetters ) ) { throw new Error ( ` ${ configSetters } ` ) } if ( ! configSetters . every ( _ . isFunction ) ) { const invalidElementIndex = configSetters . findIndex ( setter => ! _ . isFunction ( setter ) ) throw new Error ( ` ` + ` ${ invalidElementIndex } ${ configSetters [ invalidElementIndex ] } ` ) } }
Asserts that given param is an array of functions.

@param {Function[]} configSetters Array of functions as returned by webpack blocks.
Asserts that given param is an array of functions .