The Function.prototype.call()
method is not a function. It needs a this
reference.
"The call()
method calls a function with a given this
value and arguments provided individually."
You will need to pass the response directly to it, or just call:
response.join()
Working example
Promise.resolve([1, 2])
.then(response => Array.prototype.join.call(response))
.then(console.log)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…