majwilson / python-to-javascript

A tool that allows programmers to convert code written in Python into the equivalent code written in Javascript.
MIT License
23 stars 5 forks source link

Add support for "not in" operator #4

Open SystemParadox opened 2 years ago

SystemParadox commented 2 years ago

Converts:

if 'foo' not in x:

To:

if (!('foo' in x)) {
}