Validate an input is null
The raw input
isNull(null) >> { valid: true, parsed: null, }; isNull(undefined) >> { valid: false, error: "Not null: undefined", }; Copy
isNull(null) >> { valid: true, parsed: null, }; isNull(undefined) >> { valid: false, error: "Not null: undefined", };
Validate an input is null