Nude Element API Docs - v0.1.3
    Preparing search index...

    Function getSuper

    • Similar to calling super in a method, but dynamically bound. Caveat: Do not ever do getSuper(this, methodName)?.methodName as that may return this[methodName] if it was defined in a superclass. Instead use getSuperMember(this, methodName), which ensures the parent method is returned.

      Parameters

      • obj: any

        An object, class or instance.

      • testFn: any

        If defined, the function will return the superclass that passes a given test.

      Returns any

      The relevant superclass or prototype or null if none exists.