Skip to content

Instantly share code, notes, and snippets.

@IPRIT
Created April 11, 2015 17:01
Show Gist options
  • Select an option

  • Save IPRIT/7a7b73f51dfa23132ddd to your computer and use it in GitHub Desktop.

Select an option

Save IPRIT/7a7b73f51dfa23132ddd to your computer and use it in GitHub Desktop.
function duckCount() {
return Array.prototype.slice.call(arguments).filter(function(obj) {
return Object.prototype.hasOwnProperty.call(obj, 'quack')
}).length
}
module.exports = duckCount;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment