

God-fearing, Christ-following, husband, and father of 2. Software developer and tech dude. Views expressed are my own.
Be careful when you return object literals. By default, JavaScript assumes you want to create a function body when you use braces, e.g., { broken: true }. If you want to use an implicit return for an object literal, you’ll need to disambiguate by wrapping the object literal in parentheses: