How to check if an array is an array in JScript?

186 Views Asked by At

I am trying to port this Javascript code to JScript, but I am not familiar with the base library.

They are supposed to be a compatible languages but this ain't working... the following code gives me a 'method or property not supported by the object' error.

 if (Array.isArray(options.boolFlags)) {
   // ...
 }

Is there an equivalent way to check for array type in JScript.Net?

1

There are 1 best solutions below

2
l4m2 On BEST ANSWER

Use x instanceof Array if that's what you want?