Constructors
constructor
- new Store(indexMap): Store
Parameters
- indexMap: Record<string, string[]>
Methods
delete
- delete(objs): void
Returns void
get
- get(indexValue, indexKey?): any
Parameters
- indexValue: string
Optional
indexKey: string
Returns any
getIndexValues
- getIndexValues(indexKey): string[]
Returns string[]
getMany
- getMany(indexValues?, indexKey?): Map<string, any>
Parameters
Optional
indexValues: string[]Optional
indexKey: string
Returns Map<string, any>
getManyAsArray
- getManyAsArray(indexValues?, indexKey?): any[]
Parameters
Optional
indexValues: string[]Optional
indexKey: string
Returns any[]
has
- has(indexValue, indexKey?): boolean
Parameters
- indexValue: string
Optional
indexKey: string
Returns boolean
missing
- missing(indexValues, indexKey?): string[]
Parameters
- indexValues: string[]
Optional
indexKey: string
Returns string[]
store
- store(objs): void
Returns void
Static
createMultiIndexStore
- createMultiIndexStore(indexKeys, ids): Store
Parameters
- indexKeys: string[]
- ids: string | string[]
Static
createSingleIndexStore
- createSingleIndexStore(indexKey): Store