# ofSubCategory

{% hint style="info" %}
This method belongs to the property - [getList](https://biologyscience.gitbook.io/alpha-coders/reference/properties/getlist)
{% endhint %}

### Parameters

<table><thead><tr><th align="center">PARAMETER</th><th align="center">TYPE</th><th width="122" align="center">OPTIONAL</th><th align="center">DESCRIPTION</th></tr></thead><tbody><tr><td align="center"><strong>id</strong></td><td align="center"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></td><td align="center"></td><td align="center">ID of a Category.</td></tr><tr><td align="center"><strong>page</strong></td><td align="center"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></td><td align="center"><span data-gb-custom-inline data-tag="emoji" data-code="1f44d">👍</span></td><td align="center">Which set of results to be obtained (1 - 200)</td></tr></tbody></table>

### Returns

[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)<[List](https://biologyscience.gitbook.io/alpha-coders/types#list)>>

### Example Code

```javascript
<getList>.ofSubCategory(1).then(x => console.log(x));

// OR

<getList>.ofSubCategory(1, 10).then(x => console.log(x));
```
