Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Java
how to check wether the property exist in a object in java script
Norbert
Programming language:
Java
2021-05-27 19:20:48
0
Q:
how to check wether the property exist in a object in java script
Chris
Code:
Java
2021-06-24 21:08:53
if (obj.hasOwnProperty('prop')) { // do something }
2
Tags
object
java
check
how
script
New to Communities?
Join the community