import { builtinConverters } from "./builtinConverters" ; export const toJSONValueHelper = ( item ) => { for ( let i = 0 ; i < builtinConverters . length ; i ++ ) { const converter = builtinConverters [ i ] ; if ( converter . matchObject ( item ) ) { return converter . toJSONValue ( item ) ; } } return undefined ; } ;