export function get ( obj , path , fallback ? , index ? ) { path = ( path ?. split ?. ( '.' ) ?? [ path ] ) as string ; for ( index = 0 ; index < path . length ; index ++ ) { obj = obj ? obj [ path [ index ] ] : undefined ; } return obj === undefined ? fallback : obj ; }