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