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
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
kewinzaq1
kewinzaq1OP3y ago
no way, it's defined
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
kewinzaq1
kewinzaq1OP3y ago
test runtime tells TypeError
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
kewinzaq1
kewinzaq1OP3y ago
it throw error even i checked const arr = ['1', '2', '3'] console.log(arr.findLast((i) => i === '1'))
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
kewinzaq1
kewinzaq1OP3y ago
in browser
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server