function isNull(type) {
	if (typeof type === 'string') {
		return type === 'null';
	}

	return type.type === 'null';
}
/**
 * check if the type is null
 *
 * @param  {string|object} type  type to check
 * @return {boolean} return if the type is null
 */
check if the type is null
@param  {string|object} type  type to check
@return {boolean} return if the type is null
check if the type is null @param { string|object } type type to check @return { boolean } return if the type is null
function isNull(type) {
	if (typeof type === 'string') {
		return type === 'null';
	}
	return type.type === 'null';
}
function isNull ( type ) { if ( typeof type === 'string' ) { return type === 'null' ; } return type . type === 'null' ; }
check if the type is null
 @param  {string|object} type  type to check
 @return {boolean} return if the type is null
check if the type is null @param { string|object } type type to check @return { boolean } return if the type is null