stringValue
functionBuild a SerializationSchema that returns `value` when it is a `string`, otherwise returns `defaultValue` (the empty string by default).
Import
import { stringValue } from '@modular/sdk/editor';Notes
- __NO_SIDE_EFFECTS__
Build a SerializationSchema that returns `value` when it is a `string`, otherwise returns `defaultValue` (the empty string by default).