This whole function can be written as

return (typeof p) + ' ' + p;