diff --git a/packages/core/lib/database/helpers.ts b/packages/core/lib/database/helpers.ts deleted file mode 100644 index 14f72c0..0000000 --- a/packages/core/lib/database/helpers.ts +++ /dev/null @@ -1,19 +0,0 @@ -export function pick( - obj: Record, - props: string | string[], -): Record { - const newObj = {} as Record; - if (typeof props === 'string' && obj.hasOwnProperty(props)) { - newObj[props] = obj[props]; - } - - if (Array.isArray(props)) { - for (const prop of props) { - if (obj.hasOwnProperty(prop)) { - newObj[prop] = obj[prop]; - } - } - } - - return newObj; -}