Skip to content

Commit

Permalink
Remove dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 19, 2017
1 parent 7e2aa03 commit d2cc216
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var has = require('has');
var own = {}.hasOwnProperty;

module.exports = hasProperty;

Expand All @@ -14,7 +14,7 @@ function hasProperty(node, name) {
}

props = node.properties;
value = props && has(props, name) && props[name];
value = props && own.call(props, name) && props[name];

return value !== null && value !== undefined && value !== false;
}
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
"files": [
"index.js"
],
"dependencies": {
"has": "^1.0.1"
},
"dependencies": {},
"devDependencies": {
"browserify": "^14.0.0",
"esmangle": "^1.0.1",
Expand Down

0 comments on commit d2cc216

Please sign in to comment.