function hasOwnPropertyimport { hasOwnProperty } from "https://dotland.deno.dev/std@0.92.0/_util/has_own_property.ts"; hasOwnProperty<T>(obj: T, v: PropertyKey): booleanDetermines whether an object has a property with the specified name. Avoid calling prototype builtin hasOwnProperty for two reasons: hasOwnProperty is defined on the object as something else: const options = { ending: 'utf8', hasOwnProperty: 'foo' }; options.hasOwnProperty('ending') // throws a TypeError The object doesn't inherit from Object.prototype: const options = Object.create(null); options.ending = 'utf8'; options.hasOwnProperty('ending'); // throws a TypeError Type ParametersTParametersobj: TA Object. v: PropertyKeyA property name. Returnsboolean