Files
30-seconds-of-code/snippets/is-null.md
2023-04-28 22:29:23 +03:00

326 B

title, type, tags, cover, dateModified
title type tags cover dateModified
Value is null snippet
type
broken-screen 2020-10-20T23:02:01+03:00

Checks if the specified value is null.

  • Use the strict equality operator to check if the value of val is equal to null.
const isNull = val => val === null;
isNull(null); // true