assertMutuallyExclusiveOptions¶
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/assertMutuallyExclusiveOptions.ts for the most up-to-date information.
Overview¶
Throws an assertion error if mutually exclusive options are specified.
@example assertMutuallyExclusiveOptions( { tree:1, flower:2 }, [ 'tree' ], [ 'flower' ] ) => error assertMutuallyExclusiveOptions( { flower:2 }, [ 'tree' ], [ 'flower' ] ) => no error assertMutuallyExclusiveOptions( { tree:1 }, [ 'tree' ], [ 'flower' ] ) => no error assertMutuallyExclusiveOptions( { tree:1, mountain:2 }, [ 'tree', 'mountain' ], [ 'flower' ] ) => no error
@author Sam Reid (PhET Interactive Simulations)
Source Code¶
See the source for assertMutuallyExclusiveOptions.ts in the phet-core repository.