***`
@jupyterlite / @jupyterlite/contents / 文件 / hasFormat
函数:hasFormat()
#
**hasFormat**(
ext,
fileFormat):
boolean`
定义于:packages/contents/src/tokens.ts:44
确定给定的扩展名是否与给定的文件格式匹配。
参数#
ext
#
string
fileFormat
#
"base64"
| "text"
| "json"
返回#
boolean