Skip to main content

booleanValue

function

Build a SerializationSchema that returns `value` when it is a `boolean`, otherwise returns `defaultValue` (`false` by default).

function booleanValue(defaultValue?: boolean): SerializationSchema<boolean>

Import

import { booleanValue } from '@modular/sdk/editor';

Notes

__NO_SIDE_EFFECTS__