Skip to content

Instantly share code, notes, and snippets.

@bdavidxyz
Last active January 9, 2017 16:27
Show Gist options
  • Save bdavidxyz/c4e64d7ab5e4bd1c48a9472d7afdad3c to your computer and use it in GitHub Desktop.
Save bdavidxyz/c4e64d7ab5e4bd1c48a9472d7afdad3c to your computer and use it in GitHub Desktop.
const sizeDifference = _(proposals).size() - _(answers).size();
const arrayOfFalse = _.times(sizeDifference, _.constant(false));
return _.chain(answers)
.concat(arrayOfFalse)
.zip(proposals)
.map(_.reverse)
.value();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment