Created
November 25, 2014 11:52
-
-
Save dmfilipenko/39d2ec8f8a484043a5f6 to your computer and use it in GitHub Desktop.
This file contains 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
[1, true, false, 0, 0, null] | |
.filter(Boolean) | |
.map(function(value) { | |
return { | |
status: new Boolean(value), | |
date: new Date() | |
} | |
}) | |
.forEach(function(obj) { | |
VendorsItems.insert(obj) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment