import { BindState } from "./types" ; function get ( object , keyString ) { const keys = keyString . split ( "." ) ; let ret = object ; keys . forEach ( ( key ) => { ret = ret [ key ] ; } ) ; return ret ; } function getValues ( data , getter ) { if ( ! getter ) { return { } ; } const value = data [ getter ] ; if ( ! value ) { console . error ( "Failed to get value" , data , getter ) ; return { } ; } return { [ getter ] : value , } ; } export { get , getValues } ;