everyCopyBagEntry = (b, fn) =>
  getCopyBagEntries(b).every((entry, index) => fn(entry, index))
@template {Key} K
@param {CopyBag<K>} b
@param {(entry: [K, bigint], index: number) => boolean} fn
@returns {boolean}