chore: replace findLast method
This should fix the reported firefox crash error in #11 (closed)
Array method findLast
was used but is only supported by Firefox > 104
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findLast
Edited by Matthias Pfeil