Skip to content
/ has-own Public

A safer .hasOwnProperty() where property name comes first: `hasOwn(name, obj)`

License

Notifications You must be signed in to change notification settings

pebble/has-own

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

About

A safer .hasOwnProperty() where property name comes first: `hasOwn(name, obj)`

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published