I have in a SSJS javascript a function that takes in a parameter. In the function I need to check what type of element the parameter is.
I can check for example if that type is an array:
if(false == values instanceof Array)
I notice that sometimes the incoming parameter is an ArrayList of strings. Is it possible to check against this type also in SSJS?
For now I just convert the object type before I send it to the function.
instanceof ArrayList
orinstanceof List
? It should work. – Knut Herrmann