If if is passed an object with a method to a function, would be possible to get the name of that object from the function)
funcTest(array.slice(4,8)) // should get: "array"
If if is passed an object with a method to a function, would be possible to get the name of that object from the function)
funcTest(array.slice(4,8)) // should get: "array"
Stefan said:No, that's not possible. array.slice(4,8) will be evaluated first, and the resulting array will be passed to funcTest.
If if is passed an object with a method to a function, would be possible to get the name of that object from the function)
funcTest(array.slice(4,8)) // should get: "array"
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.