const leftPad = (str: string | number, length: number, fill = '0'): string => {
  const current = String(str);
  return current.length < length ? `${fill}${str}` : current;
};

export { leftPad };
