Function match

A Array.prototype.filter-like function that splits the results into two groups - matched and unmatched

  • use Map.groupBy instead for even more robustness
  • Type Parameters

    • T

    Parameters

    Returns { matched: T[]; unmatched: T[] }