===
checks the object equality based on references, then why setting object = null
not changing the same object referenced inside an array ?
let john = {
name: "John"
};
let array = [john];
console.log(array[0] === john); // true
john = null; // set john to null
console.log(array[0] === john); // false -- why not true ?
console.log(array[0]); // {name: "John"} -- why not null ?