UNPKG

@cnamts/vue-dot

Version:

Implementation of our Design System for the French Health Insurance

6 lines (5 loc) 208 B
/** Get the extension of a file */ export function getFileExtension(filename: string): string { // lastIndexOf returns '.xxx', add 1 to slice the dot return filename.slice(filename.lastIndexOf('.') + 1); }