79338490

Date: 2025-01-08 09:04:19
Score: 1
Natty:
Report link

Maybe these are nice minor adjustments:

const joinByDelimiterButKeepAsArray = <T, D>(arr: T[], delimiter: D): (T | D)[] => {
  return arr.flatMap((item, i) => i == 0 ? item : [delimiter, item])
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: MrRom