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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i has-own

    Weekly Downloads

    13,138

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.17 kB

    Total Files

    8

    Last publish

    Collaborators

    • aaron
    • pebble-tech