I attempted to use the filter and find method in order to retrieve the value 0, however it did not work as expected and instead returned undefined
[0, undefined, null, false].filter(e => e) // returns an empty array
[0, undefined, null, false].find(e => e) // returns undefined
If anyone can assist me in finding a solution to this issue, I would greatly appreciate your help