Use hasOwnProperty when iterating over Array
Merge pull request #66 from dougwilson/fix/array-compact

Use hasOwnProperty when iterating over Array