npm.io
1.0.1 • Published 6 years ago

has-own

Licence
MIT
Version
1.0.1
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
1
DeprecatedThis package is deprecated

#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