extendDefined¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/phet-core/blob/main/js/extendDefined.ts for the most up-to-date information.
Overview¶
Like phet-core's extend, but does not overwrite properties with undefined values.
For example:
extendDefined( { a: 5 }, { a: undefined } ) will return { a: 5 }
@author Jonathan Olson <jonathan.olson@colorado.edu>
Source Code¶
See the source for extendDefined.ts in the phet-core repository.