A painless way to perform JavaScript function arguments data type detection