Answers for "distructuring null check"

0

distructuring null check

const D = null;
const { a, a: { z } = {}, b, c } = { ...D };

console.log(a, b, c, z);
Posted by: Guest on June-12-2021
0

distructuring null check

const D = null;
const { a, b, c } = D || {};

console.log(a, b, c);
Posted by: Guest on June-12-2021

Browse Popular Code Answers by Language