secret
Last active — forked from /gist:a367338a76dce2404c9a

Comment Haiku

  • Download Gist
gistfile1.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12
// Comment Haiku:
// Inspired by
// https://github.com/jquery/jquery/blob/fccfeefb1036ac70f565c2f54b55a14fca528d57/src/core.js#L513-514
 
// Objects own props first,
// As we pass all but the last,
// My own prop means plain.
 
var key;
for ( key in obj ) {}
 
return key === undefined || hasOwn.call( obj, key );

The link for those of you who don't want to copy/paste it ;)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.