fileoverview param in_string1 param in_string2 param in_separator returns export function joinPaths ( in_string1 = "" , in_string2 = "" , in_separator = "/" ) { let separator = in_separator ; if ( ! in_string1 || ! in_string2 || in_string1 . substr ( - in_separator . length ) === in_separator || in_string2 . substr ( 0 , in_separator . length ) === in_separator ) { separator = "" ; } return in_string1 + separator + in_string2 ; }