????

Your IP : 18.219.90.165


Current Path : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/api/node_modules/validator/es/lib/util/
Upload File :
Current File : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/api/node_modules/validator/es/lib/util/typeOf.js

/**
 * Better way to handle type checking
 * null, {}, array and date are objects, which confuses
 */
export default function typeOf(input) {
  var rawObject = Object.prototype.toString.call(input).toLowerCase();
  var typeOfRegex = /\[object (.*)]/g;
  var type = typeOfRegex.exec(rawObject)[1];
  return type;
}