Skip to content

Commit

Permalink
Update array.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekwuno authored Aug 29, 2024
1 parent 9accd7d commit 85c1f13
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -656,10 +656,10 @@ The `array::find` Returns the first occurrence of `value` in the array or `NONE`

```surql
RETURN array::find(['a', 'b', 'c', 'b', 'a'], 'b');
-- 1
-- b
RETURN [1, 2, 3].find(4);
-- 'b'
-- [NONE]
```

The `array::find` function is most useful when a [closure](/docs/surrealdb/surrealql/datamodel/closures) is passed in which allows for customized searching.
Expand Down Expand Up @@ -1401,4 +1401,4 @@ array::join(array::push(["Again", "again"], "again"));

```bash title="Response"
"Again and again and again"
```
```

0 comments on commit 85c1f13

Please sign in to comment.