mwg API
    Preparing search index...

    Function dropByPriority

    • The ladder fitShareLink wants for a record: the whole record first, then the record without its least important field, and so on. priority lists the field names from most to least important; fields it does not name are dropped last-to-first after it, never before.

      Parameters

      • record: Readonly<Record<string, unknown>>
      • priority: readonly string[]

      Returns Record<string, unknown>[]