Function definition:
public ReturnTwoValues(someInput: string): [string, boolean] {
const text = "hello"
const value = true
return [text, value]
}
Caller:
let [text, value] = ReturnTwoValues("someinputstring")
Function definition:
public ReturnTwoValues(someInput: string): [string, boolean] {
const text = "hello"
const value = true
return [text, value]
}
Caller:
let [text, value] = ReturnTwoValues("someinputstring")