Preparing backend integration
This commit is contained in:
10
front/src/helpers/ArrayHelper.ts
Normal file
10
front/src/helpers/ArrayHelper.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export abstract class ArrayHelper {
|
||||
|
||||
public static contains(array : any[], element : any) : boolean {
|
||||
return array.indexOf(element) > -1;
|
||||
}
|
||||
|
||||
public static indexOf(array : any[], element : any) : number {
|
||||
return array.indexOf(element);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user