Answers for "joi not empty string"

0

joi not empty string

var joi = require('joi')

// check if not empty string
const notEmptyString = joi.string().regex(/^[^\s]+$/).required()
Posted by: Guest on April-14-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language