Search Results for

    / fm / liveswitch / ArrayExtensions

    Class: ArrayExtensions

    fm.liveswitch.ArrayExtensions

    Table of contents

    Constructors

    • constructor

    Methods

    • getTypeString
    • add
    • addRange
    • clear
    • clone
    • contains
    • getCount
    • getRange
    • insert
    • map
    • newArray
    • remove
    • removeAt
    • toArray

    Constructors

    constructor

    + new ArrayExtensions(): ArrayExtensions

    Returns: ArrayExtensions

    Methods

    getTypeString

    ▸ getTypeString(): string

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ArrayExtensions.ts:3


    add

    ▸ Staticadd<T>(array: T[], value: T): void

    Type parameters:

    Name
    T

    Parameters:

    Name Type
    array T[]
    value T

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ArrayExtensions.ts:9


    addRange

    ▸ StaticaddRange<T>(array: T[], values: T[]): void

    Type parameters:

    Name
    T

    Parameters:

    Name Type
    array T[]
    values T[]

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ArrayExtensions.ts:34


    clear

    ▸ Staticclear<T>(array: T[]): void

    Type parameters:

    Name
    T

    Parameters:

    Name Type
    array T[]

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ArrayExtensions.ts:31


    clone

    ▸ Staticclone<T>(array: T[]): T[]

    Type parameters:

    Name
    T

    Parameters:

    Name Type
    array T[]

    Returns: T[]

    Defined in: Generated/TypeScript/fm.liveswitch/ArrayExtensions.ts:57


    contains

    ▸ Staticcontains<T>(array: T[], value: T): boolean

    Type parameters:

    Name
    T

    Parameters:

    Name Type
    array T[]
    value T

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ArrayExtensions.ts:46


    getCount

    ▸ StaticgetCount<T>(array: T[]): number

    Type parameters:

    Name
    T

    Parameters:

    Name Type
    array T[]

    Returns: number

    Defined in: Generated/TypeScript/fm.liveswitch/ArrayExtensions.ts:6


    getRange

    ▸ StaticgetRange<T>(array: T[], index: number, count: number): T[]

    Type parameters:

    Name
    T

    Parameters:

    Name Type
    array T[]
    index number
    count number

    Returns: T[]

    Defined in: Generated/TypeScript/fm.liveswitch/ArrayExtensions.ts:39


    insert

    ▸ Staticinsert<T>(array: T[], index: number, value: T): void

    Type parameters:

    Name
    T

    Parameters:

    Name Type
    array T[]
    index number
    value T

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ArrayExtensions.ts:25


    map

    ▸ Staticmap<T, R>(array: T[], callback: IFunction3<T, number, T[], R>): R[]

    Type parameters:

    Name
    T
    R

    Parameters:

    Name Type
    array T[]
    callback IFunction3<T, number, T[], R>

    Returns: R[]

    Defined in: Generated/TypeScript/fm.liveswitch/ArrayExtensions.ts:64


    newArray

    ▸ StaticnewArray<T>(values: T[]): T[]

    Type parameters:

    Name
    T

    Parameters:

    Name Type
    values T[]

    Returns: T[]

    Defined in: Generated/TypeScript/fm.liveswitch/ArrayExtensions.ts:54


    remove

    ▸ Staticremove<T>(array: T[], value: T): boolean

    Type parameters:

    Name
    T

    Parameters:

    Name Type
    array T[]
    value T

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ArrayExtensions.ts:12


    removeAt

    ▸ StaticremoveAt<T>(array: T[], index: number): void

    Type parameters:

    Name
    T

    Parameters:

    Name Type
    array T[]
    index number

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ArrayExtensions.ts:22


    toArray

    ▸ StatictoArray<T>(array: T[]): T[]

    Type parameters:

    Name
    T

    Parameters:

    Name Type
    array T[]

    Returns: T[]

    Defined in: Generated/TypeScript/fm.liveswitch/ArrayExtensions.ts:28

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0