Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private Type

Type: object

Type declaration

Protected _events

_events: object

Type declaration

Private _models

_models: object

Type declaration

Methods

Private _clearCollection

  • _clearCollection(): void

Private _destroyCollection

  • _destroyCollection(): void

Private _init

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

Protected _offAllListener

  • _offAllListener(): void

add

  • add(model: T | IModel): boolean

chunk

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

clear

  • clear(): void

countBy

destroy

  • destroy(): void

each

filter

find

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

getAll

  • getAll(): T[]

getById

  • getById(id: string): T | IModel

getLength

  • getLength(): number

groupBy

has

  • has(model: T | IModel): boolean

map

merge

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

off

  • off(eventName: string, handler?: IHandler): void

on

  • on(eventsName: string | string[], handler: IHandler): void

reduce

remove

  • remove(model: T | IModel): boolean

reset

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

sortBy

toArray

  • toArray(): T[]

toJSON

  • toJSON(): any

trigger

  • trigger(eventName: string, eventParams?: __type | undefined | null): void
  • Trigger Event with Param

    Parameters

    • eventName: string
    • Default value eventParams: __type | undefined | null = {}

    Returns void

Static Protected _isUndefined

  • _isUndefined(obj: any): boolean

Generated using TypeDoc