property 'length' does not exist on type 'response' code example
Example: property 'length' does not exist on type 'T'
const result = <T extends any>(arr:T[]):T => {
return arr[arr.length - 1]
}
result([1,2,3])
const result = <T extends any>(arr:T[]):T => {
return arr[arr.length - 1]
}
result([1,2,3])