diff --git a/doc-surrealdb_versioned_docs/version-latest/surrealql/functions/database/array.mdx b/doc-surrealdb_versioned_docs/version-latest/surrealql/functions/database/array.mdx index 77ceca258..dadf82311 100644 --- a/doc-surrealdb_versioned_docs/version-latest/surrealql/functions/database/array.mdx +++ b/doc-surrealdb_versioned_docs/version-latest/surrealql/functions/database/array.mdx @@ -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. @@ -1401,4 +1401,4 @@ array::join(array::push(["Again", "again"], "again")); ```bash title="Response" "Again and again and again" -``` \ No newline at end of file +```