Drop-in for root.getObjectByName(name): the same object, from the index when root belongs to an indexed tree, and from the walk otherwise (a nullish root yields undefined, as root?.getObjectByName(name) does).
root.getObjectByName(name)
root
undefined
root?.getObjectByName(name)
Drop-in for
root.getObjectByName(name): the same object, from the index whenrootbelongs to an indexed tree, and from the walk otherwise (a nullishrootyieldsundefined, asroot?.getObjectByName(name)does).