fix default file reader bug
This commit is contained in:
parent
21109e4bf9
commit
db131d10c0
15 changed files with 636 additions and 254 deletions
15
client/src/app/shared/helpers/tuple.ts
Normal file
15
client/src/app/shared/helpers/tuple.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
export class Tuple<T, U> {
|
||||
constructor(public first: T, public second: U) {}
|
||||
|
||||
public get(): [T, U] {
|
||||
return [this.first, this.second];
|
||||
}
|
||||
|
||||
public switchGet(elem: any): any{
|
||||
if(elem == this.first){
|
||||
return this.second;
|
||||
} else {
|
||||
return this.first;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue