8000 Condense `!!true` to `true` · Issue #5732 · rollup/rollup · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
Condense !!true to true #5732
Closed
Closed
@benmccann

Description

@benmccann

Feature Use Case

While I wouldn't write !!true by hand, I have some code that's outputting it as the result of a define replacement. It's a pretty minor thing, but would potentially save a couple of characters to condense !!true to true

Feature Proposal

Replace !!true with true. That doesn't appear to happen today:

https://rollupjs.org/repl/?version=4.27.2&shareable=JTdCJTIyZXhhbXBsZSUyMiUzQW51bGwlMkMlMjJtb2R1bGVzJTIyJTNBJTVCJTdCJTIyY29kZSUyMiUzQSUyMmV4cG9ydCUyMHZhciUyMGZvbyUyMCUzRCUyMCEhdHJ1ZSUzQiUyMiUyQyUyMmlzRW50cnklMjIlM0F0cnVlJTJDJTIybmFtZSUyMiUzQSUyMm1haW4uanMlMjIlN0QlNUQlMkMlMjJvcHRpb25zJTIyJTNBJTdCJTIyb3V0cHV0JTIyJTNBJTdCJTIyY29tcGFjdCUyMiUzQXRydWUlMkMlMjJmb3JtYXQlMjIlM0ElMjJlcyUyMiU3RCUyQyUyMnRyZWVzaGFrZSUyMiUzQXRydWUlN0QlN0Q=

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0