pseudo-lang / pseudo

transpile algorithms/libs to idiomatic JS, Go, C#, Ruby
MIT License
683 stars 43 forks source link

JSTranslator doesn't have a String#include? method #20

Closed notzoom closed 6 years ago

notzoom commented 6 years ago

Trying to translate this Python program to JS:

string = "test"

if "test" in string:
   print("positive")

What I get is: Pseudo error: JSTranslator doesn't have a String#include? method

alehander92 commented 6 years ago

Pseudo basically needs a weekend or two of work to completely implement and test the standard library of methods (started in https://github.com/alehander42/pseudo/blob/master/docs/library_reference.md).

Do you have an intended usage for it, or you are just interested in how it works?