> For the complete documentation index, see [llms.txt](https://range.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://range.angular-package.dev/draft/less/methods/static-isless.md).

# static isLess()

## `Less.isLess()`

Checks whether the given [`value`](#undefined) is the [`Less`](/draft/less/overview.md) instance of any or given primitive [value](#lessvalue-value).

{% code title="less.class.ts" %}

```typescript
public static isLess<Value extends number>(
  value: any,
  lessValue?: Value
): value is Less<Value> {
  return (
    typeof value === 'object' &&
    value instanceof this &&
    (typeof lessValue === 'number' ? value.valueOf() === lessValue : true)
  );
}
```

{% endcode %}

### Generic type variables

#### <mark style="color:green;">`Value`</mark>`extends`[<mark style="color:green;">`number`</mark>](https://www.typescriptlang.org/docs/handbook/basic-types.html#number)

A generic type variable indicates captured type of the supplied [`lessValue`](#lessvalue-value) via the [return type](#return-type).

### Parameters

#### `value:`[<mark style="color:green;">`any`</mark>](https://www.typescriptlang.org/docs/handbook/basic-types.html#any)

The value of [`any`](https://www.typescriptlang.org/docs/handbook/basic-types.html#any) type to test against the [`Less`](/draft/less/overview.md) instance.

#### `lessValue:`[<mark style="color:green;">`Value`</mark>](#valueextendsnumber)

An optional value of generic type variable [`Value`](#valueextendsnumber) to check whether it's the primitive value of the given [`value`](#value-any).

### Return type

#### `Lees<`[<mark style="color:green;">`Value`</mark>](#valueextendsnumber)`>`

The **return type** is a [`boolean`](https://www.typescriptlang.org/docs/handbook/basic-types.html#boolean) resulting from its statement indicating the [`value`](#value-any) is the [`Less`](/draft/less/overview.md) object that takes the generic type variable [`Value`](#valueextendsnumber).

### Returns

The **return value** is a [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) indicating whether the given [`value`](#value-any) is the [`Less`](/draft/less/overview.md) instance of any or given [primitive value](#lessvalue-value).

## Example usage

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

// Define constant `id`.
const id = 390;

// Returns Less {390} of Less<390>.
const id390 = Less.create(id);

// Returns `true`.
Less.isLess(id390);

// Returns `false`.
Less.isLess(id390, 381);

// Returns `true`.
Less.isLess(id390, 390);
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://range.angular-package.dev/draft/less/methods/static-isless.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
