typia
Version:
Superfast runtime validators with only one line
6 lines (5 loc) • 406 B
JavaScript
//#region src/internal/_httpFormDataReadBoolean.ts
const _httpFormDataReadBoolean = (input) => input instanceof File ? input : input === null ? void 0 : input === "null" ? null : input.length === 0 ? true : input === "true" || input === "1" ? true : input === "false" || input === "0" ? false : input;
//#endregion
export { _httpFormDataReadBoolean };
//# sourceMappingURL=_httpFormDataReadBoolean.mjs.map