# Methods

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>public static</strong> <a href="/pages/QSFXcpwkJ0RxxPVXyWy0"><strong>create()</strong></a>: <mark style="color:green;">Range</mark><<mark style="color:green;">Value</mark>><br>Returns a new instance of <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> with a range of the given required <a href="/pages/QSFXcpwkJ0RxxPVXyWy0#min-min"><code>min</code></a>, <a href="/pages/QSFXcpwkJ0RxxPVXyWy0#max-max"><code>max</code></a> and optional current <a href="/pages/QSFXcpwkJ0RxxPVXyWy0#value-number"><code>value</code></a>, <a href="/pages/QSFXcpwkJ0RxxPVXyWy0#step-step-1-asstep"><code>step</code></a>.</p>                                       |
| <p><strong>public static</strong> <a href="/pages/sIGYHXCAavdVGwnTKkNf"><strong>createFrom()</strong></a>: <mark style="color:green;">Range</mark><<mark style="color:green;">number</mark>, <mark style="color:green;">number</mark>, <mark style="color:green;">Step</mark>><br>Creates the <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> instance from the given random <a href="/pages/sIGYHXCAavdVGwnTKkNf#numbers-number"><code>numbers</code></a> and the <a href="/pages/sIGYHXCAavdVGwnTKkNf#step-step"><code>step</code></a>.</p>                                                                                                                            |
| <p><strong>public static</strong> <a href="/pages/DiPxawuJLWgVwTQox5jU"><strong>createMaximum()</strong></a>: <mark style="color:green;">Maximum</mark><<mark style="color:green;">Value</mark>><br>Returns the <a href="/pages/FsmzzwAsU4wnhzR6Owkf"><code>Maximum</code></a> instance of the given <strong>maximum</strong> <a href="/pages/EKYdWnu3CDizYOPf9eTO#value-value"><code>value</code></a>.</p>                                                                                                                                                                                                                                                                           |
| <p><strong>public static</strong> <a href="/pages/DiPxawuJLWgVwTQox5jU"><strong>createMinimum()</strong></a>: <mark style="color:green;">Minimum</mark><<mark style="color:green;">Value</mark>><br>Returns the <a href="/pages/hVzjtjutjQy5nmHoH46a"><code>Minimum</code></a> instance of the given <strong>minimum</strong> <a href="/pages/DiPxawuJLWgVwTQox5jU#value-value"><code>value</code></a>.</p>                                                                                                                                                                                                                                                                           |
| <p><strong>public static</strong> <a href="/pages/5olg23oRfx2qdPmEMcOX"><strong>isRange()</strong></a>: value is <mark style="color:green;">Range</mark><<mark style="color:green;">Min</mark>, <mark style="color:green;">Max</mark>><br>Checks whether the <a href="/pages/5olg23oRfx2qdPmEMcOX#value-any"><code>value</code></a> is an instance of <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> of any or the given <a href="/pages/5olg23oRfx2qdPmEMcOX#min-min"><strong>minimum</strong></a> and <a href="/pages/5olg23oRfx2qdPmEMcOX#max-max"><strong>maximum</strong></a> range and <a href="/pages/5olg23oRfx2qdPmEMcOX#step-step"><code>step</code></a>.</p> |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |                                                                                                                                                                                                                                                                                                                                                                                                |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>public</strong> <a href="/pages/9IXA1BpZcHLCKRBYTkkD"><strong>forEachStep()</strong></a>: <mark style="color:green;">this</mark><br>Performs the specified action for each step in the <a href="/pages/axyOCaYA3ZNCNCFu5va6">maximum</a> range of an <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array"><code>Array</code></a>.</p>                                                                                                                                                                               |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>public</strong> <a href="/pages/KY2K1sTYmkccTpci8kfM"><strong>getCurrentRange()</strong></a>: <mark style="color:green;">Readonly</mark><<mark style="color:green;">Array</mark><<mark style="color:green;">number</mark>>>                                                                                                                                                                                                                                                                                                                                     | <mark style="color:green;">undefined</mark><br>Returns a range of numbers from <a href="/pages/UGBxh1tB0YNadfDcttUF">minimum</a> to the current <a href="/pages/K3Di7Lb1PzkbEN0Iwo3M">value</a> by the <a href="/pages/MLb0oEuCazKVOozjKbw0"><code>step</code></a> of a specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object.</p>                                     |
| <p><strong>public</strong> <a href="/pages/X1kL1HvQtpi1Zmy2ybuD"><strong>getCurrentStep()</strong></a>: <mark style="color:green;">number</mark>                                                                                                                                                                                                                                                                                                                                                                                                                           | <mark style="color:green;">undefined</mark><br>Returns the step of the range <a href="/pages/K3Di7Lb1PzkbEN0Iwo3M">value</a>.</p>                                                                                                                                                                                                                                                              |
| <p><a href="/pages/OtGsebfmmgxwodFETxTk#undefined"><mark style="color:red;">⚠</mark></a> <strong>public</strong> <a href="/pages/LFoaENTZmdqtBTzXQIgt"><strong>getMax()</strong></a>: <mark style="color:green;">Max</mark><br>Gets the <strong>maximum</strong> range of a specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object.</p>                                                                                                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><a href="/pages/OtGsebfmmgxwodFETxTk#undefined"><mark style="color:red;">⚠</mark></a> <strong>public</strong> <a href="/pages/QhlVVRehZHqa5bcbA1rd"><strong>getMin()</strong></a>: <mark style="color:green;">Min</mark><br>Gets the <strong>minimum</strong> range of a specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object.</p>                                                                                                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>public</strong> <a href="/pages/dXvAlbtLbzaj3w9i2tZv"><strong>getRange()</strong></a>: <mark style="color:green;">number</mark>\[]<br>Returns range of numbers from <a href="/pages/UGBxh1tB0YNadfDcttUF">minimum</a> to the given <a href="/pages/dXvAlbtLbzaj3w9i2tZv#value-number-this.max"><code>value</code></a> with the <a href="/pages/MLb0oEuCazKVOozjKbw0"><code>step</code></a> of a specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object.</p>                                                                              |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>public</strong> <a href="/pages/l2xYQPkijNVkX8miZv7c"><strong>getRangeOfStep()</strong></a>: <mark style="color:green;">Readonly</mark><<mark style="color:green;">Array</mark><<mark style="color:green;">number</mark>>>                                                                                                                                                                                                                                                                                                                                      | <mark style="color:green;">undefined</mark><br>Returns a range of numbers by the specified <a href="/pages/MLb0oEuCazKVOozjKbw0"><code>step</code></a> from the <a href="/pages/UGBxh1tB0YNadfDcttUF">minimum</a> to the given <a href="/pages/l2xYQPkijNVkX8miZv7c#step-number"><code>step</code></a> of a specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object.</p> |
| <p><strong>public</strong> <a href="/pages/FDN16aYE4SyjCiID2CBR"><strong>getValueOfStep()</strong></a>: <mark style="color:green;">number</mark>                                                                                                                                                                                                                                                                                                                                                                                                                           | <mark style="color:green;">undefined</mark><br>Returns the range value of the given <a href="/pages/FDN16aYE4SyjCiID2CBR#step-number"><code>step</code></a>.</p>                                                                                                                                                                                                                               |
| <p><strong>public</strong> <a href="/pages/rB7CXMnw17TwjN6uKBAO"><strong>has()</strong></a>: <mark style="color:green;">boolean</mark><br>Checks whether the <a href="/pages/rB7CXMnw17TwjN6uKBAO#value-number"><code>value</code></a> is in the range of a specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object.</p>                                                                                                                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>public</strong> <a href="/pages/RBfEX2Ue9lGCEUX8HgIp"><strong>hasEvery()</strong></a>: <mark style="color:green;">boolean</mark><br>Checks whether every value of the given <a href="/pages/RBfEX2Ue9lGCEUX8HgIp#...values-number"><code>values</code></a> is in the range of a specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object.</p>                                                                                                                                                                                              |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>public</strong> <a href="/pages/btdZ4Qh7QdlmIZWnmXrN"><strong>hasSome()</strong></a>: <mark style="color:green;">boolean</mark><br>Checks whether some <a href="/pages/btdZ4Qh7QdlmIZWnmXrN#...values-number"><code>values</code></a> are in the range of a specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object.</p>                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>public</strong> <a href="/pages/cOZk3IZ47dgLWxri6X3t"><strong>isBetween()</strong></a>: <mark style="color:green;">boolean</mark><br>Checks whether range of the given <a href="/pages/cOZk3IZ47dgLWxri6X3t#min-number"><code>min</code></a> and <a href="/pages/cOZk3IZ47dgLWxri6X3t#max-number"><code>max</code></a> is between the range of a specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object.</p>                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>public</strong> <a href="/pages/xUAw8v9sZBu77tIqcfOA"><strong>isBetweenEvery()</strong></a>: <mark style="color:green;">boolean</mark><br>Checks whether the range of a specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object is between every range of the given <a href="/pages/xUAw8v9sZBu77tIqcfOA#...ranges-number-number"><code>ranges</code></a>.</p>                                                                                                                                                                            |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>public</strong> <a href="/pages/MoZjsKLwzky7aZw9h2qv"><strong>isBetweenSome()</strong></a>: <mark style="color:green;">boolean</mark><br>Checks whether the range of a specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object is between <strong>some</strong> given <a href="/pages/MoZjsKLwzky7aZw9h2qv#...ranges-number-number"><code>ranges</code></a>.</p>                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>public</strong> <a href="/pages/hi6jxvIdrkSjpisiGc03"><strong>maxGreaterThan()</strong></a>: <mark style="color:green;">boolean</mark><br>Checks whether the <a href="/pages/hi6jxvIdrkSjpisiGc03#value-number"><code>value</code></a> is <strong>less</strong> than the <a href="/pages/axyOCaYA3ZNCNCFu5va6"><strong>maximum</strong></a> <strong>range</strong> of a specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object.</p>                                                                                                      |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>public</strong> <a href="/pages/KIMEBubWprHAFOUMAhyG"><strong>maxLessThan()</strong></a>: <mark style="color:green;">boolean</mark><br>Checks whether the <a href="/pages/KIMEBubWprHAFOUMAhyG#value-number"><code>value</code></a> is greater than the <a href="/pages/axyOCaYA3ZNCNCFu5va6"><strong>maximum</strong></a> <strong>range</strong> of a specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object.</p>                                                                                                                       |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>public</strong> <a href="/pages/8c0RUMIfKHusI44Mqj0h"><strong>minGreaterThan()</strong></a>: <mark style="color:green;">boolean</mark><br>Checks whether the <a href="/pages/8c0RUMIfKHusI44Mqj0h#value-number"><code>value</code></a> is <strong>less</strong> than a <a href="/pages/UGBxh1tB0YNadfDcttUF"><strong>minimum</strong></a> <strong>range</strong> of a specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object.</p>                                                                                                        |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>public</strong> <a href="/pages/LNl7lsrUbsA0yBXoSwh9"><strong>minLessThan()</strong></a>: <mark style="color:green;">boolean</mark><br>Checks whether the <a href="/pages/LNl7lsrUbsA0yBXoSwh9#value-number"><code>value</code></a> is greater than the <a href="/pages/UGBxh1tB0YNadfDcttUF"><strong>minimum</strong></a> <strong>range</strong> of a specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object.</p>                                                                                                                       |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>public</strong> <a href="/pages/s8Imcz2PSbof3rBZDFGi"><strong>setValue()</strong></a>: <mark style="color:green;">this</mark><br>Sets the range <a href="/pages/K3Di7Lb1PzkbEN0Iwo3M"><code>value</code></a> between the <a href="/pages/UGBxh1tB0YNadfDcttUF">minimum</a> and <a href="/pages/axyOCaYA3ZNCNCFu5va6#range.prototype.max">maximum</a> of a specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object.</p>                                                                                                                    |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>public</strong> <a href="/pages/gBq19svkE9PP7Ocpylxd"><strong>setValueToStep()</strong></a>: <mark style="color:green;">this</mark><br>Sets the <a href="/pages/K3Di7Lb1PzkbEN0Iwo3M"><code>value</code></a> of the specified <a href="/pages/WZLUQpD9Ues7IGjhopYg"><code>Range</code></a> object to the value of the given <a href="/pages/gBq19svkE9PP7Ocpylxd#step-number"><code>step</code></a>.</p>                                                                                                                                                        |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>public</strong> <a href="/pages/Fcuv6FIbkJXNWgz4Wxw8"><strong>stepByStep()</strong></a>: <mark style="color:green;">this</mark><br>Performs a callback function with the ability to decide when to move to the next step of the range.</p>                                                                                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><a href="/pages/OtGsebfmmgxwodFETxTk#undefined"><mark style="color:red;">⚠</mark></a> <strong>public</strong> <a href="/pages/GJqGdZJ82JGz4XJZvwRB"><strong>toArray()</strong></a>: readonly \[<mark style="color:green;">Min</mark>, <mark style="color:green;">Max</mark>]<br>Returns a read-only array of the range in order minimum and maximum.</p>                                                                                                                                                                                                                |                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><a href="/pages/OtGsebfmmgxwodFETxTk#undefined"><mark style="color:red;">⚠</mark></a> <strong>public</strong> <a href="/pages/pAvLgk7tvMGKtjf2J13G#range.prototype.valueof"><strong>valueOf()</strong></a>: <mark style="color:green;">Readonly</mark><{ min: <mark style="color:green;">Min</mark>; max: <mark style="color:green;">Max</mark> }><br>Returns a read-only object consisting of the primitive values of <a href="/pages/hVzjtjutjQy5nmHoH46a"><code>Minimum</code></a> and <a href="/pages/FsmzzwAsU4wnhzR6Owkf"><code>Maximum</code></a> instances.</p> |                                                                                                                                                                                                                                                                                                                                                                                                |


---

# Agent Instructions: 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://docs.angular-package.dev/range-1/range/methods.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.
