Constructors
constructor
-
Parameters
-
Default value order: T[] = []
Properties
Readonly order
order: T[]
Methods
i
-
Parameters
Returns number
The index of br
toJSON
- toJSON(mapper?: (k: BranchKey) => any): any[]
-
Parameters
-
Default value mapper: (k: BranchKey) => any = (k: BranchKey): any => k
Returns any[]
Static fromJSON
-
Parameters
-
json: any[]
-
Default value mapper: (k: any) => BranchKey = (k: any): BranchKey => k
Finds the index of
br
and adds it to the order if necessary.