It looks like the original functionality of Array.lastIndexOf was what I'm looking for, but it was changed. Any idea how to replicate the old functionality?
http://blog.sugarjs.com/post/8452749291/v0-9-2-indexof-lastindexof-fixed
It looks like the original functionality of Array.lastIndexOf was what I'm looking for, but it was changed. Any idea how to replicate the old functionality?
http://blog.sugarjs.com/post/8452749291/v0-9-2-indexof-lastindexof-fixed
After looking at the sugar.js docs, it appears that
Array#findIndexdoes the reverse of what I'm trying to do, so here's my solution which uses that: