Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 465 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 465 Bytes

#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