import { size } from '../typeAware/size' ; import { sum } from '../../utils/sum' ; const objectSize = function ( value ) : number { return 1 + sum ( [ ... Object . values ( value ) ] . map ( ( item ) : number => size ( item ) ) ) ; } ; export { objectSize } ;