Commit 9c3d25c9 by zxf

fix

parent 16d6fa2b
'use strict';
module.exports = function required(value) {
if((null===value)){
return false;
}else if(undefined===value){
return false;
}else if((typeof value === 'string') && (''===value.trim())){
return false;
}
return true;
};
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment