> For the complete documentation index, see [llms.txt](https://brian3647.gitbook.io/103-breads/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brian3647.gitbook.io/103-breads/reference/strings.md).

# Strings

\`breads.strings\`

### Function: `sarcastic`. Return string with sArCaStIc words.

```typescript
function sarcastic(string: string): string;
```

#### Example:

```typescript
const sarcastic = require("103-breads").strings.sarcastic;

console.log(sarcastic("Hello")); // hElLo
```

### Function: `separation`. Returns separated string.

```typescript
function separation(string: string, uppercase?: boolean): string;
```

#### Example:

```typescript
const separation = require("103-breads").strings.separation;

console.log(separation("abc")); // a b c
console.log(separation("abc", true)); // A B C
```

### Function: `includesAll`. Check if a string includes all members of an array.

```typescript
function includesAll(string: string, matches: string[]): boolean;
```

#### Example:

```typescript
const includesAll = require("103-breads").strings.includesAll;

console.log(includesAll("Hello world!", ["world", "javascript"])); // true
console.log(includesAll("Hello world!", ["javascript"])); // false
```

### Function: `includesSome`. Check if a string includes one of the strings included.

```typescript
function includesSome(string: string, matches: string[]): boolean;
```

#### Example:

```typescript
const includesSome = require("103-breads").strings.includesSome;
 
console.log(includesSome("Hello world!", ["world", "javascript"])); // true
console.log(includesSome("Hello world!", ["javascript"])); // false
```
