external /** */ import repeat from "lodash/repeat" ; /**
 * Some simple helpers for working with strings.
 */ export namespace StringHelpers { param arr export function recJoin ( arr ) { if ( arr instanceof Array ) { return arr . map ( x => this . recJoin ( x ) ) . join ( "" ) ; } else { return String ( arr ) ; } } } /**
 * Helpers for working with numbers.
 */ export namespace NumHelpers { param n param digits param char export function padInt ( n , digits , char ) { let str = n . toString ( ) ; if ( str . length >= digits ) return str ; return repeat ( char , digits - str . length ) + str ; } }