@witchcraft/spellcraft
    Preparing search index...

    Function mapKeys

    • Map keys of a chain or chord* by the given function.

      Useful for inspecting a chain/chord when debugging.

      *This is determined by checking if the first element is an array or not.

      Type Parameters

      • TType extends any[] | any[][]
      • TReturn = string

      Parameters

      Returns TType extends any[][] ? TReturn[][] : TReturn[]