@legumeinfo/web-components
Version:
Web Components for the Legume Information System and other AgBio databases
12 lines • 417 B
JavaScript
/**
* Equivalent to calling `hasOwnProperty` on the given object but is linter friendly.
*
* @param o - The object to call `hasOwnPropery` on.
* @param p - The property to check for.
*
* @returns A boolean indicating whether or not the property exists in the object.
*/
export function hasOwnProperty(o, p) {
return Object.prototype.hasOwnProperty.call(o, p);
}
//# sourceMappingURL=has-own-property.js.map