node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

has-own

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 it's readability.

LICENSE