parent
8abbcf7887
commit
a6db624aad
3 changed files with 26 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||||||
|
## `in` operator for strings |
||||||
|
|
||||||
|
`in` and `not in` operators now works on strings, in addition to arrays and |
||||||
|
dictionaries. |
||||||
|
|
||||||
|
``` |
||||||
|
fs = import('fs') |
||||||
|
if 'something' in fs.read('somefile') |
||||||
|
# True |
||||||
|
endif |
||||||
|
``` |
Loading…
Reference in new issue