has-own

A safer .hasOwnProperty() - hasOwn(name, obj)

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
has-own
001.0.13 years ago9 years agoMinified + gzip package size for has-own in KB

Readme

has-own
Build Status
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.
LICENSE