@cartridge-engine/keyboard-engine
    Preparing search index...

    Function setIfAbsent

    • Insert a value into the map unless the id already exists. Used by addAction / addSequenceAction.

      Type Parameters

      • T

      Parameters

      • map: Map<string, T>
      • id: string
      • value: T

      Returns boolean

      true if inserted, false if the id already existed.