javascriptgoodstuff datatype.js call getDataType(null) return exact data type of what you have passed.