API / @aionbuilders/nabu

isSupportedJsonVersion

Function Stability: stable

Whether importJSON can read a document export of this version (see JSON_FORMAT_VERSION). A missing version is read as the current one; the number 1 and the string '1' are the same version.

Signature

TypeScript
import { isSupportedJsonVersion } from '@aionbuilders/nabu';
TypeScript
function isSupportedJsonVersion(version: unknown): boolean

Parameters

Parameters of isSupportedJsonVersion
ParameterTypeDescription
versionunknownn/a

Returns

boolean

Source: src/lib/utils/extensions.js:325