Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.log(isValid(null));
- console.log("test");
- console.log(undefined);
- console.log(45);
- function isValid(el) {
- return value !== undefined
- && value !== null
- && value !== '';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement