Skip to content

Commit

Permalink
Merge pull request lucee#1409 from MitrahSoft/StringSome()
Browse files Browse the repository at this point in the history
Added examples for StringSome() function
  • Loading branch information
zspitzer authored Oct 2, 2023
2 parents c547fa7 + a4e21ee commit 76945b4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/03.reference/01.functions/stringsome/_examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
```luceescript+trycf
myString="lucee";
callback=(x)=>x >= 'a';
writeDump(StringSome(myString, callback));
callback_1=(x)=>x >= 'z';
writeDump( StringSome(myString,callback_1));
```
8 changes: 8 additions & 0 deletions docs/03.reference/05.objects/string/some/_examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
```luceescript+trycf
myString="lucee";
callback=(x)=>x >= 'a';
writeDump(myString.some(callback));
callback_1=(x)=>x >= 'z';
writeDump( myString.some(callback_1));
```

0 comments on commit 76945b4

Please sign in to comment.