Skip to content

Commit

Permalink
remove hasOwnProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcc committed Aug 2, 2017
1 parent 077f8f6 commit 13169d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@
function _shape(typeObj) {
return function(v) {
for (var key in typeObj) {
if (typeObj.hasOwnProperty(key)) {
if(!_check(v[key], typeObj[key])) return false;
}
// if (typeObj.hasOwnProperty(key)) {
if(!_check(v[key], typeObj[key])) return false;
// }
}
return true;
}
Expand Down

0 comments on commit 13169d5

Please sign in to comment.