Can you set the internal [[Class]] property of an ECMAScript object?
You can't trick decent javascript engines.
You can trick user land code with
x.toString = function () {
return '[object Array]';
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With