/ fm / liveswitch / ArrayExtensions
Class: ArrayExtensions
fm.liveswitch.ArrayExtensions
Table of contents
Constructors
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
▸ Static
add<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
▸ Static
addRange<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
▸ Static
clear<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
▸ Static
clone<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
▸ Static
contains<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
▸ Static
getCount<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
▸ Static
getRange<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
▸ Static
insert<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
▸ Static
map<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
▸ Static
newArray<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
▸ Static
remove<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
▸ Static
removeAt<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
▸ Static
toArray<T>(array
: T[]): T[]
Type parameters:
Name |
---|
T |
Parameters:
Name | Type |
---|---|
array |
T[] |
Returns: T[]
Defined in: Generated/TypeScript/fm.liveswitch/ArrayExtensions.ts:28