> 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/inequality/accessors/get-less.md).

# get less()

## `Inequality.prototype.less`

The [`get`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get) accessor obtains from the private [`#less`](/inequality/properties/less.md) property an instance of the [`Less`](/less/overview.md) with a [primitive value](/less/methods/valueof.md) from a given [`value`](/inequality/constructor.md#value-value) of the [`Inequality`](/inequality/overview.md) constructor.

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

```typescript
public get less(): Less<Value> {
  return this.#less;
}
```

{% endcode %}

### Return type

#### `Less<`[<mark style="color:green;">`Value`</mark>](/inequality/generic-type-variables.md#inequality-less-than-value-greater-than)`>`

The **return type** is the [`Less`](/less/overview.md) [primitive wrapper](https://developer.mozilla.org/en-US/docs/Glossary/Primitive#primitive_wrapper_objects_in_javascript) object that takes the generic type variable [`Value`](/inequality/generic-type-variables.md#inequality-less-than-value-greater-than) of the [`Inequality`](/inequality/overview.md) object.

### Returns

The **return value** is the [`Less`](/less/overview.md) instance with a [primitive value](/greater/methods/valueof.md) from the given [`value`](/inequality/constructor.md#value-value) of the [`Inequality`](/inequality/overview.md) constructor.

## Example usage

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

// Define the `Year` class and extend it with `Inequality`.
class Year<Value extends number> extends Inequality<Value> {}

// Initialize `Year`.
const year = new Year(1981);

// Returns Year {1981} of Year<1981>.
year;

// Returns Less {1981} of Less<1981>
year.less;

// Returns `true`.
year.less.than(1982);

// Returns `false`.
year.less.thanEvery(1981, 1982, 1983);

// Returns `false`.
year.less.thanSome(1981, 1980, 1979);
```
