Is there a way to find if given function reference has a closure and eventually to access to closed variables? I was searching for something similiar to “arguments” property, but in vain.
Edit : outside or inside given function
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.
Nope, you will never know. That’s why closures are used to emulate private members, since you never know what’s inside, hence “private”.