Could it be too slow for parameters where toString can generate big string (for example, uploading Buffers)? Maybe check if it has getFullYear, getMonth, getDay,... ?