JavaScript

JavaScript

Using Optional Chaining for checking for existence of nested Object key

Anjanesh LekshminarayananAnjanesh Lekshminarayanan
Sep 7, 20221 min read

In PHP we can do use isset() for checking the existence of a deeply nested array's key since the beginning of time : <?php $p1 =...