Skip to content

extend

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/extend.ts for the most up-to-date information.

Overview

Like Underscore's _.extend and PHET_CORE/merge, but with hardcoded support for ES5 getters/setters. In general this type shouldn't be used for phet's options pattern, and instead was designed to support extension for defining mixins and object prototypes.

See https://github.com/documentcloud/underscore/pull/986.

@author Jonathan Olson <jonathan.olson@colorado.edu>

Source Code

See the source for extend.ts in the phet-core repository.