Protected
cloneProtected
safeProtected
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
Transform a single node. The transformation calls the preVisitor from starting from the startObject. The preVisitor can dictate whether transformation should be stopped. Note that stopping the transformation also prevets further copying. The transformer itself transforms object starting with the deepest one that can be visited. The transformer callback is performed on a copy of the original.
Recursively transforms all objects that are not arrays. Mapper is called on deeper objects first.
object to start iterating from
mapper to transform the various objects - argument is a copy of the original
Optional
preVisitor: (some: object) => VisitContextcallback 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.
Traverses only selected nodes as returned by the function.
Similar to this.transformNode, but without copying the startObject. The pre-visitor visits starting from the root, going deeper, while the actual visitor goes in reverse.
Visitor that visits all objects. Visits deeper objects first.
Optional
preVisitor: (some: object) => VisitContext
Function to shallow clone an object.