Skip to content

Instantly share code, notes, and snippets.

@meteormanaged
Created December 10, 2015 03:53
Show Gist options
  • Save meteormanaged/686267ece61b899c49e4 to your computer and use it in GitHub Desktop.
Save meteormanaged/686267ece61b899c49e4 to your computer and use it in GitHub Desktop.
find object in an array.
const arrayFind = (index, val, items) => items.filter(e => e[index] === val ? e : false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment