feat(striker-ui-api): add repeater for passing verbose flags to perl scripts

main
Tsu-ba-me 12 months ago
parent 4c789f980d
commit 89b516f12f
  1. 9
      striker-ui-api/src/lib/repeat.ts

@ -0,0 +1,9 @@
export const repeat = (
value: string,
count: number,
{ prefix = '' }: { prefix?: string } = {},
): string => {
const repeated = value.repeat(count);
return repeated ? `${prefix}${repeated}` : '';
};
Loading…
Cancel
Save