# startsWith

Source: https://taxilang.org/docs/language/stdlib/startsWith

**Full name:** `taxi.stdlib.startsWith`

## Signature

```taxi
declare extension function startsWith(source: String, valueToSearchFor:String):Boolean
```

## Description

Returns `true` if `source` begins with the specified prefix. The match is case-sensitive.

```taxi
find { files: File[] } as {
   tempFiles: File[] = files.filter((File) -> FileName.startsWith('tmp_'))
}
```

## Examples

Returns `true` when the string begins with the specified prefix, case-sensitively.

Query:

```taxi
find {
   hasPrefix: Boolean = 'Hello World'.startsWith('Hello')
   noMatch: Boolean = 'Hello World'.startsWith('World')
}
```

Result:

```json
{
  "hasPrefix": true,
  "noMatch": false
}
```
