Skip to content

Request: check if a string contains another one with "in" or "contains" #110

Description

@vindarel

Hi all,
Currently when I want to check if a string contains a substring, I need to use javascript's indexOf, or other tricks.

Of course, I always write first "foo" in "foobar", but that doesn't work. That would be the best solution to me. Would it be possible to see that in LiveScript ?

Then I look at prelude and I don't find something like Str:contains. That would also be nice.

Any chance to see that coming ?

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions