pairs¶
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/pairs.ts for the most up-to-date information.
Overview¶
Creates an array of arrays, which consists of pairs of objects from the input array without duplication.
For example, phet.phetCore.pairs( [ 'a', 'b', 'c' ] ) will return: [ [ 'a', 'b' ], [ 'a', 'c' ], [ 'b', 'c' ] ]
@author Jonathan Olson <jonathan.olson@colorado.edu>