toolish - v0.2.5
    Preparing search index...

    Function getOrCreateProperty

    • If the given object contains a property with the given name, returns its value, otherwise adds a new property with the result of calling the given factory function, and returns that.

      Type Parameters

      • T extends object
      • K extends string | number | symbol

      Parameters

      Returns T[K]