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.
Shares the functionality and first two arguments with this.transformNode. The third argument allows you to also transform based on the subType of objects. Note that when a callback for the subtype is provided, the callback for the general type is NOT executed.
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.traverseNodes but also allows you to match based on the subtype of objects.
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.
Similar to this.visitNode but also allows you to match based on the subtype of objects. When both nodeCallBack and NodeSpecific callBack are matched, will only visit nodeSpecifCallback
Visitor that visits all objects. Visits deeper objects first.
Optional
preVisitor: (some: object) => VisitContext
Function to shallow clone an object.