import { implementsFunction } from "@thi.ng/checks/implements-function" ; param ctx param keys internal export const derefContext = ( ctx , keys ) => { if ( ctx == null || ! keys || ! keys . length ) return ctx ; const res = { ... ctx } ; for ( let k of keys ) { const v = res [ k ] ; implementsFunction ( v , "deref" ) && ( res [ k ] = v . deref ( ) ) ; } return res ; } ;