Get JS object by ID

Is it possible to get the JS object by the ID of a component/query/transformer?

E.g. I have the transformer-IDs (string), and would like to get the corresponding JS object to use in a JS statement, something like: GetObjectById("transformerId").

You should use transformerId dirrectly to reference the conponent/query/transformer in js context, shuch as table1.recordUpdates, if in a string context, don't forget to add {{ }}, eg {{table1.recordUpdates}}. Different components have different properties, pls find the docs.