MCPcopy
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 */
394export 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

popMethod · 0.80
splitMethod · 0.80

Tested by

no test coverage detected