---
description: '`breads.strings`'
---

# 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
```
