a typo! you're using brackets instead of parentheses when doing hasOwnProperty
check.
if(!result.hasOwnProperty(objectID[i]))
also, you haven't to add the array when calling _uniq
since you're already chaining it:
_.chain(array)
.uniq(function(item, key) {
return getFromObjectID(item);
})