reddice icon indicating copy to clipboard operation
reddice copied to clipboard

validator isNull is deprecated

Open guillaume-miara opened this issue 8 years ago • 2 comments

As per https://github.com/chriso/validator.js/issues/505 the method is deprecated

It will throw : TypeError: _validator2.default.isNull is not a function

Must be replaced by isEmpty()

guillaume-miara avatar Jan 12 '17 03:01 guillaume-miara

correct me if it's not even better to replace it with lodashs isEmpty, since it's already being used.

maxefi avatar May 05 '17 19:05 maxefi

https://www.npmjs.com/package/validator

iqbalsafian avatar May 11 '17 19:05 iqbalsafian