deep-freeze icon indicating copy to clipboard operation
deep-freeze copied to clipboard

Remove redundant hasOwnProperty check and update travis testing

Open reyawn opened this issue 8 years ago • 0 comments

The additional hasOwnProperty check is unneeded:

  • Object.prototype.hasOwnProperty checks if a property is found directly on an object (see hasOwnProperty).
  • Object.getOwnPropertyNames returns all properties found directly on an object (see getOwnPropertyNames).

This PR removes the unneeded hasOwnProperty check since it is being performed on the output from Object.getOwnPropertyNames.

It also somewhat "modernizes" the travis tests, dropping testing against the archaic 0.6 and 0.8 versions and adding the more likely 0.10 and up stable versions as well as testing against the latest release.

reyawn avatar Jun 30 '16 15:06 reyawn