window.kaolin
    Preparing search index...

    Function getFunctionByNameOrThrow

    • Resolve a function by dot-separated path, returning a fallback when the path is absent. Throws if a path is provided but cannot be resolved.

      Parameters

      • functionPathString: string

        Dot-separated path to look up; if falsy, fallbackFunction is returned.

      • OptionalfallbackFunction: Function

        Returned when functionPathString is falsy.

      Returns Function

      The resolved function or the fallback.