You are using an outdated browser.
Please upgrade your browser to improve your experience.
// or
function nullCheck(obj) return obj !== null && obj !== undefined; fe nullioner script better
function nullCheck(obj)
Improving Your Front-End Null Check Script: A Better Approach // or function nullCheck(obj) return obj
In the first example, we use the loose equality operator ( == ) to check for both null and undefined values. This approach is concise and readable. fe nullioner script better