Check will return true if the opts[requiredField]
property is declared but undefined
#2
Labels
opts[requiredField]
property is declared but undefined
#2
This check will return true if the
opts[requiredField]
property is declared but undefined. Example:Instead of
(!(requiredField in opts))
use(typeof opts[requiredField] === 'undefined')
, as well as adding more sophisticated validation for the specific fields.Originally posted by @emeryrose in #1
The text was updated successfully, but these errors were encountered: