Does Javascript or jQuery have sometime like the “in” statement in Python?
“a” in “dea” -> True
Googling for the word in is hopeless 🙁
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.
It does have an
inoperator but is restricted to object keys only:And you may also use it for checks like this one:
For string checking though you need to use the indexOf() method: