Skip to main content

George Zahariev
Historical

This post announced improved handling of the empty object when it was introduced. For current syntax and behavior, see the Objects documentation.

Flow handled the empty object literal in a permissive but unsafe way. The fix described in this post increases safety and predictability, but requires using different patterns and behavior.