const enforceRange=(num,type)=>{const min=0,max="unsigned long"===type?4294967295:9007199254740991;if(isNaN(num)||num<min||num>max)throw new TypeError;if(num>=0)return Math.floor(num)};export default enforceRange;