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?
如果您要使用x instanceof Array
?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.