import { ModelValueType , PrimitiveValueType } from '../glossary' ; function isPrimitiveValueType ( value ) { return ( typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean' || value ?. constructor ?. name === 'Date' ) ; } export function isModelValueType ( value ) { return isPrimitiveValueType ( value ) || Array . isArray ( value ) ; }