Skip to content

Checking for void in logical operations #7256

@tomitrescak

Description

@tomitrescak

In many cases it is not desirable to allow comparison with undefined. Is it somehow enforceable that this will be detected during compilation?

function a() { }

if (a()) { } // this should throw error

I guess this is by design not available.

Metadata

Metadata

Assignees

Labels

CommittedThe team has roadmapped this issueFixedA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do thisSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions