Skip to content

Instantly share code, notes, and snippets.

@timmarinin
Created September 2, 2016 13:15
Show Gist options
  • Save timmarinin/3aefe5bdaf59962e6d471a3ea9cdcc96 to your computer and use it in GitHub Desktop.
Save timmarinin/3aefe5bdaf59962e6d471a3ea9cdcc96 to your computer and use it in GitHub Desktop.
function cond (a, b) {
for (let [i, x] of a.entries()) {
if (x) return b[i]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment