@yamlresume/core
    Preparing search index...

    Function mergeArrayWithOrder

    • Generic function to merge custom order with default order.

      Items specified in customOrder will have higher priority and appear first in the result. Remaining items will follow in the default order.

      Duplicate items in customOrder will be deduplicated (first occurrence kept). Items in customOrder that are not in defaultOrder will be ignored.

      Type Parameters

      • T

      Parameters

      • customOrder: T[]

        Array of items with custom priority order

      • defaultOrder: T[]

        Array of items in default order

      Returns T[]

      Merged order array