UNPKG

@web3r/flowerkit

Version:

A collection of more than 60 often used utility JS functions that simplify frontend development.

16 lines 531 B
/** * Checks if object has own property * @param obj{Object} - source object * @param prop{String} - property name * @see https://eslint.org/docs/latest/rules/no-prototype-builtins * @return {boolean} * @example * // How to check if object has property without calling method directly? * const obj = { * foo: "bar" * }; * const isHasOwnProp = isObjHasOwnProp(obj, "foo"); * console.log(isHasOwnProp); // => true */ export function isObjHasOwnProp(obj: any, prop: string): boolean; //# sourceMappingURL=index.d.ts.map