function removeExtension(value) {
	const index = value.lastIndexOf('.');
	if (index === -1) return value;
	return value.substr(0, index);
}
// removeExtension removed the file extension.
removeExtension removed the file extension.
removeExtension removed the file extension .
function removeExtension(value) {
	const index = value.lastIndexOf('.');
	if (index === -1) return value;
	return value.substr(0, index);
}
function removeExtension ( value ) { const index = value . lastIndexOf ( '.' ) ; if ( index === - 1 ) return value ; return value . substr ( 0 , index ) ; }
removeExtension removed the file extension.
removeExtension removed the file extension .