Interface StringLikeSequence

Hierarchy

Index

Methods

Functions

Methods

public async(interval: number): AsyncSequence

Parameters

  • interval: number

Returns

AsyncSequence

public charAt(index: number): string

Parameters

  • index: number

Returns

string

public charCodeAt(index: number): number

Parameters

  • index: number

Returns

number

public chunk(size: number): LazyJS.Sequence<T>

Parameters

  • size: number

Returns

LazyJS.Sequence<T>

public compact(): LazyJS.Sequence<T>

Returns

LazyJS.Sequence<T>

public concat(var_args: Array<T>): LazyJS.Sequence<T>

Parameters

  • var_args: Array<T>

Returns

LazyJS.Sequence<T>

public consecutive(length: number): LazyJS.Sequence<T>

Parameters

  • length: number

Returns

LazyJS.Sequence<T>

public contains(value: string): boolean

Parameters

  • value: string

Returns

boolean

public countBy(keyFn: GetKeyCallback): LazyJS.ObjectLikeSequence<T>

Parameters

Returns

LazyJS.ObjectLikeSequence<T>

public countBy(propertyName: string): LazyJS.ObjectLikeSequence<T>

Parameters

  • propertyName: string

Returns

LazyJS.ObjectLikeSequence<T>

public dropWhile(predicateFn: TestCallback): LazyJS.Sequence<T>

Parameters

Returns

LazyJS.Sequence<T>

public endsWith(suffix: string): boolean

Parameters

  • suffix: string

Returns

boolean

public every(predicateFn: TestCallback): boolean

Parameters

Returns

boolean

public filter(predicateFn: TestCallback): LazyJS.Sequence<T>

Parameters

Returns

LazyJS.Sequence<T>

public find(predicateFn: TestCallback): LazyJS.Sequence<T>

Parameters

Returns

LazyJS.Sequence<T>

public findWhere(properties: Object): LazyJS.Sequence<T>

Parameters

  • properties: Object

Returns

LazyJS.Sequence<T>

public first(): string

Returns

string

public first(count: number): LazyJS.StringLikeSequence

Parameters

  • count: number

Returns

LazyJS.StringLikeSequence

public flatten(): LazyJS.Sequence<T>

Returns

LazyJS.Sequence<T>

public groupBy(keyFn: GetKeyCallback): LazyJS.ObjectLikeSequence<T>

Parameters

Returns

LazyJS.ObjectLikeSequence<T>

public indexOf(substring: string, startIndex?: number): number

Parameters

  • substring: string
  • startIndex?: number optional

Returns

number

public initial(count?: number): LazyJS.Sequence<T>

Parameters

  • count?: number optional

Returns

LazyJS.Sequence<T>

public intersection(var_args: Array<T>): LazyJS.Sequence<T>

Parameters

  • var_args: Array<T>

Returns

LazyJS.Sequence<T>

public invoke(methodName: string): LazyJS.Sequence<T>

Parameters

  • methodName: string

Returns

LazyJS.Sequence<T>

public isEmpty(): boolean

Returns

boolean

public join(delimiter?: string): string

Parameters

  • delimiter?: string optional

Returns

string

public last(): string

Returns

string

public last(count: number): LazyJS.StringLikeSequence

Parameters

  • count: number

Returns

LazyJS.StringLikeSequence

public lastIndexOf(substring: string, startIndex?: number): number

Parameters

  • substring: string
  • startIndex?: number optional

Returns

number

public map(mapFn: MapCallback): LazyJS.Sequence<U>

Parameters

Returns

LazyJS.Sequence<U>

public mapString(mapFn: MapStringCallback): LazyJS.StringLikeSequence

Parameters

Returns

LazyJS.StringLikeSequence

public match(pattern: RegExp): LazyJS.StringLikeSequence

Parameters

  • pattern: RegExp

Returns

LazyJS.StringLikeSequence

public max(valueFn?: NumberCallback): T in LazyJS.SequenceBaser<T>

Parameters

Returns

T in LazyJS.SequenceBaser<T>

public min(valueFn?: NumberCallback): T in LazyJS.SequenceBaser<T>

Parameters

Returns

T in LazyJS.SequenceBaser<T>

public pluck(propertyName: string): LazyJS.Sequence<T>

Parameters

  • propertyName: string

Returns

LazyJS.Sequence<T>

public reduce(aggregatorFn: MemoCallback, memo?: U): U

Parameters

Returns

U

public reduceRight(aggregatorFn: MemoCallback, memo: U): U

Parameters

Returns

U

public reject(predicateFn: TestCallback): LazyJS.Sequence<T>

Parameters

Returns

LazyJS.Sequence<T>

public rest(count?: number): LazyJS.Sequence<T>

Parameters

  • count?: number optional

Returns

LazyJS.Sequence<T>

public reverse(): LazyJS.StringLikeSequence

Returns

LazyJS.StringLikeSequence

public shuffle(): LazyJS.Sequence<T>

Returns

LazyJS.Sequence<T>

public some(predicateFn?: TestCallback): boolean

Parameters

Returns

boolean

public sortBy(sortFn: NumberCallback): LazyJS.Sequence<T>

Parameters

Returns

LazyJS.Sequence<T>

public sortedIndex(value: T in LazyJS.SequenceBaser<T>): LazyJS.Sequence<T>

Parameters

  • value: T in LazyJS.SequenceBaser<T>

Returns

LazyJS.Sequence<T>

public split(delimiter: string): LazyJS.StringLikeSequence

Parameters

  • delimiter: string

Returns

LazyJS.StringLikeSequence

public split(delimiter: RegExp): LazyJS.StringLikeSequence

Parameters

  • delimiter: RegExp

Returns

LazyJS.StringLikeSequence

public startsWith(prefix: string): boolean

Parameters

  • prefix: string

Returns

boolean

public substring(start: number, stop?: number): LazyJS.StringLikeSequence

Parameters

  • start: number
  • stop?: number optional

Returns

LazyJS.StringLikeSequence

public sum(valueFn?: NumberCallback): LazyJS.Sequence<T>

Parameters

Returns

LazyJS.Sequence<T>

public takeWhile(predicateFn: TestCallback): LazyJS.Sequence<T>

Parameters

Returns

LazyJS.Sequence<T>

public toArray(): Array<T>

Returns

Array<T>

public toLowerCase(): LazyJS.StringLikeSequence

Returns

LazyJS.StringLikeSequence

public toObject(): Object

Returns

Object

public toUpperCase(): LazyJS.StringLikeSequence

Returns

LazyJS.StringLikeSequence

public union(var_args: Array<T>): LazyJS.Sequence<T>

Parameters

  • var_args: Array<T>

Returns

LazyJS.Sequence<T>

public uniq(): LazyJS.Sequence<T>

Returns

LazyJS.Sequence<T>

public where(properties: Object): LazyJS.Sequence<T>

Parameters

  • properties: Object

Returns

LazyJS.Sequence<T>

public without(var_args: Array<T>): LazyJS.Sequence<T>

Parameters

  • var_args: Array<T>

Returns

LazyJS.Sequence<T>

public zip(var_args: Array<T>): LazyJS.Sequence<T>

Parameters

  • var_args: Array<T>

Returns

LazyJS.Sequence<T>

Functions

define(methodName: Array<string>, overrides: Object): Function

Parameters

  • methodName: Array<string>
  • overrides: Object

Returns

Function