Preparing search index...
The search index is not available
Go back
brackets-manager
helpers
ensureNoDuplicates
Function ensureNoDuplicates
ensure
No
Duplicates
<
T
>
(
array
)
:
void
Ensures there are no duplicates in a list of elements.
Type Parameters
T
Parameters
array
:
Nullable
<
T
>
[]
A list of elements.
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
brackets-
manager -
v1.6.4
helpers
Set
Next
Opponent
assert
Round
Robin
balance
Byes
bye
Loser
bye
Winner
bye
Winner
To
Grand
Final
convert
Matches
To
Seeding
convert
Slots
To
Seeding
convertTBDtoBYE
ensure
Equally
Sized
ensure
Even
Sized
ensure
No
Duplicates
ensure
Not
Round
Robin
ensure
Not
Tied
ensure
Ordering
Supported
ensure
Valid
Size
extract
Participants
From
Seeding
find
Loser
Match
Number
find
Participant
find
Position
fix
Seeding
get
Child
Games
Results
get
Diagonal
Match
Number
get
Fraction
Of
Final
get
Grand
Final
Decisive
Match
get
Inferred
Result
get
Loser
get
Loser
Count
From
Wb
For
Lb
Round
get
Loser
Ordering
get
Loser
Round
Match
Count
get
Losers
get
Lower
Bracket
Round
Count
get
Match
Location
get
Match
Result
get
Match
Status
get
Nearest
Power
Of
Two
get
Next
Side
get
Next
Side
Consolation
Final
Double
Elimination
get
Next
Side
Loser
Bracket
get
Non
Null
get
Opponent
Id
get
Origin
Position
get
Other
Side
get
Parent
Match
Results
get
Round
Pair
Count
get
Seed
Count
get
Seeds
get
Side
get
Updated
Match
Results
get
Upper
Bracket
Round
Count
get
Winner
handle
Given
Status
handle
Opponents
Inversion
has
Bye
invert
Opponents
is
Defined
is
Double
Elimination
Necessary
is
Final
Group
is
Loser
Bracket
is
Major
Round
is
Match
Bye
Completed
is
Match
Completed
is
Match
Draw
Completed
is
Match
Forfeit
Completed
is
Match
Ongoing
is
Match
Participant
Locked
is
Match
Pending
is
Match
Result
Completed
is
Match
Stale
is
Match
Started
is
Match
Update
Locked
is
Match
Win
Completed
is
Minor
Round
is
Ordering
Supported
Loser
Bracket
is
Ordering
Supported
Upper
Bracket
is
Participant
In
Match
is
Power
Of
Two
is
Round
Completed
is
Round
Robin
is
Seeding
With
Ids
is
Winner
Bracket
make
Final
Standings
make
Groups
make
Normalized
Id
Mapping
make
Pairs
make
Round
Robin
Distribution
make
Round
Robin
Matches
map
Participants
Ids
To
Database
map
Participants
Names
To
Database
map
Participants
To
Database
min
Score
To
Win
Best
OfX
normalize
Ids
normalize
Participant
reset
Match
Results
reset
Next
Opponent
set
Array
Size
set
Completed
set
Extra
Fields
set
Forfeits
set
Match
Results
set
Next
Opponent
set
Parent
Match
Completed
set
Results
set
Scores
sort
Seeding
split
By
split
By
Parity
to
Result
to
Result
With
Position
transition
To
Major
transition
To
Minor
unique
By
Brackets
Manager
Delete
Find
Get
Reset
Stage
Creator
Update
Callable
Create
Crud
Interface
Data
Types
Final
Standings
Item
Parity
Split
Standard
Bracket
Results
Storage
Child
Count
Level
Database
Deep
Partial
Duel
Id
Mapping
Nullable
Omit
Id
Ordering
Map
Participant
Slot
Round
Positional
Info
Scores
Side
Table
Value
To
Array
ordering
Generated using
TypeDoc
Ensures there are no duplicates in a list of elements.