{"version":3,"sources":["/Users/kevin/Dev/OpenSource/utils/join-deep/src/index.mjs"],"sourcesContent":["import reduceDeep from 'reduce-deep';\n\nexport default function joinDeep(array, sep) {\n  const length = array == null ? 0 : array.length;\n  let hasJoined = false;\n\n  return length\n    ? reduceDeep(\n        array,\n        (memo, value) => {\n          if (hasJoined) memo += sep;\n          else hasJoined = true;\n          if (value !== undefined) memo += value;\n          return memo;\n        },\n        ''\n      )\n    : '';\n}\n"],"names":["joinDeep","array","sep","length","hasJoined","reduceDeep","memo","value","undefined"],"mappings":";;;;+BAEA;;;eAAwBA;;;iEAFD;;;;;;AAER,SAASA,SAASC,KAAK,EAAEC,GAAG;IACzC,IAAMC,SAASF,SAAS,OAAO,IAAIA,MAAME,MAAM;IAC/C,IAAIC,YAAY;IAEhB,OAAOD,SACHE,IAAAA,mBAAU,EACRJ,OACA,SAACK,MAAMC;QACL,IAAIH,WAAWE,QAAQJ;aAClBE,YAAY;QACjB,IAAIG,UAAUC,WAAWF,QAAQC;QACjC,OAAOD;IACT,GACA,MAEF;AACN"}