has
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "has", | ||
"description": "Object.prototype.hasOwnProperty.call shortcut", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"homepage": "https://github.com/tarruda/has", | ||
@@ -24,2 +24,5 @@ "author": { | ||
"main": "./src/index", | ||
"dependencies": { | ||
"function-bind": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
@@ -26,0 +29,0 @@ "chai": "~1.7.2", |
@@ -1,6 +0,3 @@ | ||
var hasOwn = Object.prototype.hasOwnProperty; | ||
var bind = require('function-bind'); | ||
module.exports = function has(obj, property) { | ||
return hasOwn.call(obj, property); | ||
}; | ||
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2757
1
10
1
+ Addedfunction-bind@^1.0.2
+ Addedfunction-bind@1.1.2(transitive)