> For the complete documentation index, see [llms.txt](https://type.angular-package.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://type.angular-package.dev/are/aredeterminer/some.md).

# some()

## `areDeterminer().some()`

Checks if some of the provided [`values`](https://type.angular-package.dev/are/aredeterminer/pages/9tQVF4vAlNggvR668PDn#...values-any) pass the test implemented by the given [`checkFn`](/are/aredeterminer.md#checkfn-function).

{% code title="are-determiner.func.ts" %}

```typescript
{
  some: <Payload extends CommonPayload>(
    callback: ResultCallback<any, Payload> = resultCallback,
    payload?: Payload
  ): boolean =>
    callback(
      isArray(values) ? values.some((value) => checkFn(value)) : false,
      values,
      payload
    ),
}
```

{% endcode %}

### Generic type variables

#### <mark style="color:green;">**`Payload`**</mark>**`extends`**<mark style="color:green;">**`CommonPayload`**</mark>

The `Payload` generic type variable constrained by generic type variable [`CommonPayload`](/are/aredeterminer.md#commonpayloadextendsobject) indicates the type of the [`payload`](#payload-payload) parameter from which it gets its value.

### Parameters

#### `callback: ResultCallback<any, Payload>`

A callback `function` of [`ResultCallback`](/type/resultcallback.md) type with parameters, the `value` that has been checked, the `result` of this check, and `payload` of generic type variable `Payload` with optional properties from the provided `payload`, to handle them before the `result` return. By default, it uses `resultCallback()` function.

#### `payload?: Payload`

An optional [`object`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) of the generic type variable [`Payload`](#payloadextendscommonpayload) is assigned to the [`payload`](/type/resultcallback.md#payload-payload) of the given [`callback`](#callback-resultcallback-less-than-any-payload-greater-than) function.

### Returns

The **return value** is a [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) indicating whether **some** of the provided [`values`](https://type.angular-package.dev/are/aredeterminer/pages/9tQVF4vAlNggvR668PDn#...values-any) passed the test of the given [`checkFn`](/are/aredeterminer.md#checkfn-function).

## Example usage

```typescript
// Example usage.
import { areDeterminer } from '@angular-package/type';

```
