Last active
January 9, 2017 16:23
-
-
Save bdavidxyz/74bb653ee49fa849edc8e4037f1b8654 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
function labeledCheckboxes (proposals, answers) { | |
let result = _.zip(proposals, answers); | |
result = _.map(result, (item) => { | |
if (item[1]) { | |
return [item[0], true]; | |
} else { | |
return [item[0], false]; | |
} | |
}); | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment