Created
November 12, 2017 23:53
-
-
Save dminuoso/eae5ea0700cb717d092c093820c43847 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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