existential
Version:
The missing existential operator for JavaScript. Returns true unless a variable is null or undefined
16 lines (15 loc) • 334 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<title>existential</title>
</head>
<body>
<script src="existential.js" type="text/javascript" charset="utf-8"></script>
<script>
var exists = require('existential');
console.log(exists(null));
console.log(exists('hello world'));
</script>
</body>
</html>