UNPKG

@enonic/js-utils

Version:
4 lines (3 loc) 83 B
export function trimExt(s: string) :string { return s.replace(/\.[^/.]+$/, ""); }