{"version":3,"file":"getChildren.cjs","names":[],"sources":["../../../src/states/functions/getChildren.ts"],"sourcesContent":["export type GetChildren_F = (str: string, ...keys: string[]) => string[];\n\n/**\n * Returns an array of keys that are included the given string, excluding the string itself.\n * @param str - The string to check against.\n * @param keys - The keys to check.\n * @returns An array of keys that include the given string, excluding the string itself.\n */\nexport const getChildren: GetChildren_F = (str, ...keys) => {\n  const noKeys = keys.length > 0;\n  const out: string[] = [];\n  if (noKeys) {\n    keys.forEach(key => {\n      const notMatch = str !== key;\n      const check3 = key.startsWith(str);\n\n      const check4 = notMatch && check3;\n      if (check4) {\n        out.push(key);\n      }\n    });\n  }\n\n  return out;\n};\n"],"mappings":";;;;;;;;AAQA,MAAa,eAA8B,KAAK,GAAG,SAAS;CAC1D,MAAM,SAAS,KAAK,SAAS;CAC7B,MAAM,MAAgB,EAAE;AACxB,KAAI,OACF,MAAK,SAAQ,QAAO;EAClB,MAAM,WAAW,QAAQ;EACzB,MAAM,SAAS,IAAI,WAAW,IAAI;AAGlC,MADe,YAAY,OAEzB,KAAI,KAAK,IAAI;GAEf;AAGJ,QAAO"}