UNPKG

@bitloops/bl-transpiler

Version:
20 lines 485 B
import { ParserSyntacticError, } from '../types.js'; const isParserErrors = (value) => { if (!Array.isArray(value)) { return false; } for (const err of value) { if (!isParserError(err)) { return false; } } return true; }; const isParserError = (value) => { if (value instanceof ParserSyntacticError) { return true; } return false; }; export { isParserError, isParserErrors }; //# sourceMappingURL=index.js.map