Skip to content

Glossary: Coding Interviews in JavaScript

Reference comparison

Also written: compare by reference, compared by reference

Arrays and objects are equal in `===` or a `Set` only if they are the very same object, not if they hold the same items. That is why grid cells are stored as strings like `"1,2"`.

Where the book teaches it

Related terms

GridCycle