Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICollection<T>

Type parameters

Hierarchy

  • ICollection

Implemented by

Index

Methods

add

  • add(model: T | IModel): boolean

chunk

  • chunk(size: number): T[][]

clear

  • clear(): void

countBy

destroy

  • destroy(): void

each

filter

find

  • find(predicate: IPredicate, start: number): T | undefined

getAll

  • getAll(): T[]

getById

  • getById(id: string): T | IModel | null

getLength

  • getLength(): number

groupBy

has

  • has(model: T | IModel): boolean

map

merge

  • merge(collection: T[] | ICollection<T> | any[]): void

reduce

remove

  • remove(model: T | IModel): boolean

reset

  • reset(array: any[] | T[]): void

sortBy

toArray

  • toArray(): T[]

toJSON

  • toJSON(): any

Generated using TypeDoc