has-own
v1.0.1
Published
A safer .hasOwnProperty() - hasOwn(name, obj)
Downloads
69,497
Readme
#has-own
Shorthand Object.prototype.hasOwnProperty.call(obj, name)
.
var assert = require('assert');
var hasOwn = require('has-own');
var o = Object.create(null);
o.name = 'has-own';
assert(hasOwn('name', o)); // true
Why another module? Because I like its readability.