Skip to content

Instantly share code, notes, and snippets.

@dminuoso dminuoso/foo.js
Created Nov 12, 2017

Embed
What would you like to do?
const idIfEq = (a, b) => a === b ? a : null
moves.find((row) => row.reduce(idIfEq))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.