uppy/packages/@uppy/utils/src/hasProperty.ts
Antoine du Hamel 51ecc66e64
@uppy/utils: refactor to TS (#4699)
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
Co-authored-by: Nick Rutten <2504906+nickrttn@users.noreply.github.com>
Co-authored-by: Murderlon <merlijn@soverin.net>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2023-11-06 15:01:50 +01:00

6 lines
219 B
TypeScript

export default function has(
object: Parameters<typeof Object.hasOwn>[0],
key: Parameters<typeof Object.hasOwn>[1],
): ReturnType<typeof Object.hasOwn> {
return Object.prototype.hasOwnProperty.call(object, key)
}