@jupyterlite / @jupyterlite/services / FILE / hasFormat
Function: hasFormat()#
hasFormat(
ext,fileFormat):boolean
Defined in: packages/services/src/contents/tokens.ts:44
Determine whether the given extension matches a given fileFormat.
Parameters#
ext#
string
fileFormat#
"base64" | "text" | "json"
Returns#
boolean