{"version":3,"file":"keys.cjs","names":[],"sources":["../../src/object/keys.ts"],"sourcesContent":["/**\n * Creates an array of the own enumerable property names of object\n * @param obj - The object to query\n * @returns Returns the array of property names\n * @example\n * keys({ a: 1, b: 2, c: 3 }); // ['a', 'b', 'c']\n */\nexport function keys<T extends object>(obj: T): Array<keyof T> {\n  if (obj == null) {\n    return [];\n  }\n  return Object.keys(obj) as Array<keyof T>;\n}\n"],"mappings":";;;;;;;;;AAOA,SAAgB,KAAuB,KAAwB;CAC7D,IAAI,OAAO,MACT,OAAO,CAAC;CAEV,OAAO,OAAO,KAAK,GAAG;AACxB"}