Skip to content

Instantly share code, notes, and snippets.

@IKatsuba
Created April 9, 2021 09:13
const items = [1, 2, 3, 4];
//before
const item = items.reverse().find(fn); // the reverse method mutates the array
//after
const item = items.findLast(fn);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment