Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/codex-team/editor.js
/ getFileExtension
Function
getFileExtension
src/components/utils.ts:394–396 ·
view source on GitHub ↗
(file: File)
Source
from the content-addressed store, hash-verified
392
* @returns {string}
393
*/
394
export
function
getFileExtension(file: File): string {
395
return
file.name.split(
'.'
).pop();
396
}
397
398
/**
399
* Check
if
string is MIME
type
Callers
nothing calls this directly
Calls
2
pop
Method · 0.80
split
Method · 0.80
Tested by
no test coverage detected