UNPKG

bit-bin

Version:

<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b

22 lines (20 loc) 528 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = hasOwnProperty; /** * Determines whether the object has the specified property. * @name hasOwnProperty * @param {object} obj * @param {string|number} prop property to test * @returns {boolean} * @example * ```js * hasOwnProperty({foo: 'bar'}, 'foo') // => true * hasOwnProperty({foo: 'bar'}, 'bar') // => false * ``` */ function hasOwnProperty(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }