Can Transformers take a parameter?

I’ve created a workaround for this First class JavaScript functions (with workaround)