src/query-helpers.js
function makeGetAllQuery(allQuery, getMissingError) {
  return (container, ...args) => {
    const els = allQuery(container, ...args)
    if (!els.length) {
      throw getElementError(getMissingError(container, ...args), container)
    }
    return els
  }
}
function makeGetAllQuery(allQuery, getMissingError) {
  return (container, ...args) => {
    const els = allQuery(container, ...args)
    if (!els.length) {
      throw getElementError(getMissingError(container, ...args), container)
    }
    return els
  }
}
function makeGetAllQuery ( allQuery , getMissingError ) { return ( container , ... args ) => { const els = allQuery ( container , ... args ) if ( ! els . length ) { throw getElementError ( getMissingError ( container , ... args ) , container ) } return els } }
this accepts a query function and returns a function which throws an error if an empty list of elements is returned
this accepts a query function and returns a function which throws an error if an empty list of elements is returned