Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

optional chaining

let myMap = new Map();
myMap.set("foo", {name: "baz", desc: "inga"});

let nameBar = myMap.get("bar")?.name;
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #optional #chaining
ADD COMMENT
Topic
Name
2+3 =