Skip to content

Commit 3e3c62f

Browse files
authored
Update README.md
1 parent eee066f commit 3e3c62f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,15 +409,15 @@ If the provided function returns true, the value will be kept, otherwise it will
409409

410410
Example:
411411
``` JavaScript
412-
Join(\" \", Filter([\"Lord\", \"of\", \"the\", \"Rings\"], (e) => Not(IsEqual(IndexOf(e, \"o\"), -1))))
412+
Join(" ", Filter(["Lord", "of", "the", "Rings"], (e) => Not(IsEqual(IndexOf(e, "o"), -1))))
413413
```
414414

415415
will filter out all words that don't contain the character 'o', resulting in "Lord of".
416416

417417
Your input does not need to be an array of strings, you can even loop over records fetched using Fetch:
418418

419419
``` JavaScript
420-
Join(", ", Map(Filter(Fetch("<fetch no-lock='true'><entity name='contact'><attribute name='ownerid' /><attribute name='createdon' /></entity></fetch>"), (recordInFilter) => Not(IsNull(Value("createdon", { explicitTarget: recordInFilter }))), (record) => DateToString(ConvertDateTime(Value("createdon", { explicitTarget: record }), { userId: Value("ownerid", { explicitTarget: record }) }), { format: "yyyy-MM-dd hh:mm" })))
420+
Join(", ", Map(Filter(Fetch("<fetch no-lock='true'><entity name='contact'><attribute name='ownerid' /><attribute name='createdon' /></entity></fetch>"), (recordInFilter) => Not(IsNull(Value("createdon", { explicitTarget: recordInFilter })))), (record) => DateToString(ConvertDateTime(Value("createdon", { explicitTarget: record }), { userId: Value("ownerid", { explicitTarget: record }) }), { format: "yyyy-MM-dd hh:mm" })))
421421
```
422422

423423
will result in something like this: `"2018-10-27 05:39, 2019-04-24 10:24"`, where `createdon` is not null.

0 commit comments

Comments
 (0)