Just happen to come across a type called “NativeArray” in JavaScript. Not sure what is that type and how different it is from normal arrays? When to use this type?
Please help
-Nayan
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This isn’t an exposed javascript type but a class used in Mozilla’s rhino to implement the javascript native (thus normal) array. It’s possible you’d find similarly named types in other javascript engine implementations.
So :
it’s not really different from the native array (depending on the signification of “different”)
you shouldn’t have this preoccupation when coding in javascript