Skip to content

validate

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/axon/blob/main/js/validate.ts for the most up-to-date information.

Overview

Throws an assertion error if assertions are enabled and the value is invalid, otherwise returns the value.

@author Sam Reid (PhET Interactive Simulations) @author Michael Kauzmann (PhET Interactive Simulations)

Source Code

See the source for validate.ts in the axon repository.