const fetchingSettings = { fetchMin : 100 , fetchMax : 5000 , fetchDefault : 200 , } ; export function getDefaultRowsCount ( count ? ) { if ( typeof count === 'number' && Number . isNaN ( count ) ) { count = 0 ; } return count !== undefined ? Math . max ( fetchingSettings . fetchMin , Math . min ( count , fetchingSettings . fetchMax ) ) : fetchingSettings . fetchDefault ; }