Javascript examples for Object:Private Member
Check if object member exists in nested object
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <script type="text/javascript"> var my = {// w w w .java2s.c o m member:{ member:{ member:{value:1} } } }; var result = ((((my || {}).member || {}).member || {}).member || {}).value; console.log( result ); </script> </body> </html>