value-required
v1.0.2
Published
const required = require('value-required'); <br/>
Downloads
9
Readme
引入方法
const required = require('value-required');
使用方法
try { required(false,'不能为空') } catch (error) { if(error.tyepe=='valueError'){ console.log(error.message) } }