myArr.findLast is not a function
Hi there, i have a problem with findLast in my test environment. It works properly in the browser, but when i was testing it, it cause error myArr.findLast is not a function
9 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
no way, it's defined
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
test runtime tells TypeError
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
it throw error even i checked
const arr = ['1', '2', '3']
console.log(arr.findLast((i) => i === '1'))
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
in browser
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View