Skip to content

Instantly share code, notes, and snippets.

@dmfilipenko
Created November 25, 2014 11:52
Show Gist options
  • Save dmfilipenko/39d2ec8f8a484043a5f6 to your computer and use it in GitHub Desktop.
Save dmfilipenko/39d2ec8f8a484043a5f6 to your computer and use it in GitHub Desktop.
[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