{"version":3,"file":"checkKeys.cjs","names":[],"sources":["../../../src/utils/objects/checkKeys.ts"],"sourcesContent":["export type CheckKeys_F = <T extends object>(\n  arg: T,\n  ...keys: string[]\n) => boolean;\n\n/**\n * Checks if all specified keys are present in the given object.\n * @param arg Object to check keys against\n * @param keys Keys to check for presence in the object\n * @returns `true` if all keys are present, `false` otherwise\n *\n * @see {@linkcode CheckKeys_F} for the type definition\n */\nexport const checkKeys: CheckKeys_F = (arg, ...keys) => {\n  const argKeys = Object.keys(arg);\n  for (const key of keys) {\n    const check = !argKeys.includes(key);\n    if (check) return false;\n  }\n  return true;\n};\n"],"mappings":";;;;;;;;;;AAaA,MAAa,aAA0B,KAAK,GAAG,SAAS;CACtD,MAAM,UAAU,OAAO,KAAK,IAAI;AAChC,MAAK,MAAM,OAAO,KAEhB,KADc,CAAC,QAAQ,SAAS,IAAI,CACzB,QAAO;AAEpB,QAAO"}