Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "observer/array"

Helper functionality for array observables.

Index

Variables

Functions

Variables

Const arrayMethods

arrayMethods: typeof prototype = Object.create(Array.prototype)

A copy of the array prototype.

This copy's mutator methods will get patched to enable notification of changes to an array.

Functions

observeArrayItems

  • observeArrayItems<T>(array: T, start: number, stop: number): void
  • Iterate over an array from a start index to a stop index and make those items observable.

    Type parameters

    • T: T[]

      Any array type

    Parameters

    • array: T

      Array with items to be made reactive.

    • start: number

      Index to start from.

    • stop: number

      Item to stop at (exclusive). For example "stop = 9" will stop at index 8.

    Returns void

Generated using TypeDoc