0

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?

beppe9000
  • 1,056
  • 1
  • 13
  • 28
  • I was trying to translate a js file to jscript.net, but I ended up making a program to embed an actual JS engine (v8) and run it. ☺ – beppe9000 Feb 15 '19 at 13:33

1 Answers1

0

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

l4m2
  • 1,157
  • 5
  • 17