# 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`](https://range.angular-package.dev/inequality/properties/less) property an instance of the [`Less`](https://range.angular-package.dev/less) with a [primitive value](https://range.angular-package.dev/less/methods/valueof) from a given [`value`](https://range.angular-package.dev/constructor#value-value) of the [`Inequality`](https://range.angular-package.dev/inequality) 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>](https://range.angular-package.dev/generic-type-variables#inequality-less-than-value-greater-than)`>`

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

### Returns

The **return value** is the [`Less`](https://range.angular-package.dev/less) instance with a [primitive value](https://range.angular-package.dev/greater/methods/valueof) from the given [`value`](https://range.angular-package.dev/constructor#value-value) of the [`Inequality`](https://range.angular-package.dev/inequality) 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);
```
