What object will this create? I’ve never seen this declaration before so I’m just wondering.
`myArray([]);
for(someValue = 0; someValue < someOtherValue; i++)
myArray.push(something[i]);
`
Thanks for any insight you can give me.
EDIT : I Update the code some more to gime some more info.
myArray doesn’t seem like a function to me in the code. This is used in an AjaxCall. Some lines after it is used like this
So unless I missed something I don’t think it is a function.
[]is an empty array literal and it’s being passed to a functionmyArraywhich accepts an array as an argument. This is not a declaration, it’s just a function call. It could be defined like this:This fills the array with the numbers from 0 to 4.