1.0.1 • Published 4 years ago

has-own v1.0.1

Weekly downloads
2,567
License
MIT
Repository
github
Last release
4 years ago

#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