Check if a value is nil

JavaScript version
const isNil = (value) => value == null;
TypeScript version
const isNil = (value: any): boolean => value == null;