UNPKG

@brimdata/zealot

Version:

The Javascript Client for Zed Lakes

13 lines (10 loc) 275 B
import {TypeBool} from "../types/type-bool" import {Primitive} from "./primitive" export class Bool extends Primitive { type: typeof TypeBool = TypeBool toJS() { if (this.value === null) return null if (this.value === "true") return true return false } }