1.0.0 • Published 6 years ago

has-own-3-test v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

#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

1.0.0

6 years ago