How much should an internal function validate its inputs?
I have an internal JavaScript helper that averages count properties from objects returned by a server. The server documents counts as nonnegative numbers. Should the helper check every…
I have an internal JavaScript helper that averages count properties from objects returned by a server. The server documents counts as nonnegative numbers. Should the helper check every…