models/helper.js
function (obj, var_type) {

		var text_class = Object.prototype.toString.call(obj).slice(8, -1);
		return (text_class == var_type);

	}
function (obj, var_type) {

		var text_class = Object.prototype.toString.call(obj).slice(8, -1);
		return (text_class == var_type);

	}
function ( obj , var_type ) { var text_class = Object . prototype . toString . call ( obj ) . slice ( 8 , - 1 ) ; return ( text_class == var_type ) ; }
Whether the variable type is matched with the specified variable type
@param  {Object}  obj      Target variable
@param  {String}  var_type Expected variable type
@return {Boolean}          Whether the type is matched
Whether the variable type is matched with the specified variable type