@vivliostyle/core
    Preparing search index...

    Function mapObj

    • Apply function to each value of the object

      Type Parameters

      • P
      • R

      Parameters

      • obj: { [key: string]: P }
      • fn: (p1: P, p2: string) => R

        second parameter is the key

      Returns { [key: string]: R }