Skip to content

Add recommendation to prefer `undefined` over `null` in our frontend style guide

Nathan Friend requested to merge nfriend-prefer-undefined-over-null into master

What does this MR do?

Adds a recommendation to our frontend style guide to prefer undefined over null.

This recommendation comes from Douglas Crockford, author of JavaScript: The Good Parts (one of my favorite books on JavaScript style). Here's a short clip where he describes the rationale for this recommendation: https://youtu.be/PSGEjv3Tqo0?t=560

Edited by Nathan Friend

Merge request reports