wrapMethodWithArguments is not behaving as documented

Hello,

In the sample of the documentation of method wrapMethodWithArguments(method, args) it says that i can send my arguments as items of an array:

solutionModel.wrapMethodWithArguments(method, [null, quotedString])

What I noticed is that i cannot reach any arguments this way, in the method my arguments are null.

It only works if i send it as a value of a property of an object:

solutionModel.wrapMethodWithArguments(method, [null, {prop: quotedString}])

this way in the method i indeed get, as my second argument, the object.

Am I using it wrong or does the documentation of this method need updating?
Or I am thinking now that maybe it depends on the webcomponent where the method is used as a handler? I use it on a bootstrapcomponents-label.

Thank you,
Diana

I found the answer, in the documentation: string arguments have to be quoted, they are interpreted before the method is called.
:)