has-own

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i has-own

Weekly Downloads

10,962

Version

1.0.1

License

MIT

Unpacked Size

3.17 kB

Total Files

8

Last publish

Collaborators

  • aaron
  • pebble-tech