Interface Context

Index

Methods

Methods

public current(): any

Returns the head of the context stack.

Returns

any

public get(key: string): any

Retrieves the value at key from the context stack.

Parameters

  • key: string

Returns

any

public push(head: any, idx?: number, len?: number): Context

Pushes an arbitrary value onto the context stack and returns a new context instance. Specify index and/or length to enable enumeration helpers.

Parameters

  • head: any
  • idx?: number optional
  • len?: number optional

Returns

Context

public rebase(head: any): Context

Returns a new context instance consisting only of the value at head, plus any previously defined global object.

Parameters

  • head: any

Returns

Context