export const noop = ( ) => { } ; export const pick = < Obj extends { [ key ] : any ; } , Key extends keyof Obj > ( props , obj ) : Pick < Obj , Key > => props . reduce ( ( acc , prop ) => { acc [ prop ] = obj [ prop ] ; return acc ; } , { } as Pick < Obj , Key > ) ;