@vivliostyle/core
    Preparing search index...

    Function indexArray

    • Index array using key function. First encountered item wins on collision. Elements with empty and null keys are dropped.

      Type Parameters

      • T

      Parameters

      • arr: T[]
      • key: (p1: T) => string

      Returns { [key: string]: T }