Traqula
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Protected

      Function to shallow clone an object.

      Type Parameters

      • T

      Parameters

      • obj: T

      Returns T

    • Protected

      Function that will call the visitor callback only on true objects. If the provided value is an array object, it will callback on all members

      Parameters

      • value: unknown
      • mapper: (some: object) => any

      Returns unknown

    • Recursively transforms all objects that are not arrays. Mapper is called on deeper objects first.

      Parameters

      • startObject: object

        object to start iterating from

      • mapper: (some: object) => any

        mapper to transform the various objects - argument is a copy of the original

      • OptionalpreVisitor: (some: object) => VisitContext

        callback that is evaluated before iterating deeper. If continues is false, we do not iterate deeper, current object is still mapped. - default: true If shortcut is true, we do not iterate deeper, nor do we branch out, this mapper will be the last one called.

        • Default false

      Returns unknown

    • Visitor that visits all objects. Visits deeper objects first.

      Parameters

      • startObject: object
      • visitor: (some: object) => void
      • OptionalpreVisitor: (some: object) => VisitContext

      Returns void