docs: function getFromObject (collection, id) {
    if (isObject(id)) {
      const entries = Object.entries(id)
      const [ key, value, ] = entries[0] || {}
      return Object.entries(collection)
        .filter(([ , resource, ]) => resource[key] === value)
        .reduce(
          (acc, [ k, v, ]) => ({
            ...acc,
            [k]: v,
          }),
          {}
        )
    }
    return collection[id]
  }