{
  "version": 3,
  "sources": ["../../../../src/libs/custom/functions/pick.mts"],
  "sourcesContent": ["import type { TupleUnion } from \"../../../types/array.mjs\";\n\nexport const pick = <T extends object, Keys extends readonly (keyof T)[]>(\n  obj: T,\n  ...keys: Keys\n): Pick<T, TupleUnion<Keys>> =>\n  // @ts-expect-error Array.prototype.reduce cannot infer the accumulated object type\n  keys.reduce<Partial<Pick<T, TupleUnion<Keys>>>>((accumulate, key) => {\n    Reflect.set(accumulate, key, Reflect.get(obj, key));\n    return accumulate;\n  }, {});\n"],
  "mappings": "AAEO,MAAM,OAAO,CAClB,QACG,SAGH,KAAK,OAA2C,CAAC,YAAY,QAAQ;AACnE,UAAQ,IAAI,YAAY,KAAK,QAAQ,IAAI,KAAK;AAC9C,SAAO;AAAA,GACN;",
  "names": []
}
