# getValueWithOptions

[**utils**](https://limechain.gitbook.io/limechain-test/utils) • **Docs**

***

[near-sdk-js v2.0.0](https://limechain.gitbook.io/limechain-test/packages) / [utils](https://limechain.gitbook.io/limechain-test/utils) / getValueWithOptions

## Function: getValueWithOptions()

> **getValueWithOptions**<`DataType`>(`subDatatype`, `value`, `options`): `DataType` | `null`

### Type Parameters

• **DataType**

### Parameters

• **subDatatype**: `unknown`

• **value**: `Uint8Array`

• **options**: `Omit`<[`GetOptions`](https://limechain.gitbook.io/limechain-test/types/collections/interfaces/getoptions)<`DataType`>, `"serializer"`> = `{}`

### Returns

`DataType` | `null`

### Defined in

[packages/near-sdk-js/src/utils.ts:69](https://github.com/dim-daskalov/near-sdk-js/blob/c95f5e9eab115df82feb9d8dca403e7b9c8c9534/packages/near-sdk-js/src/utils.ts#L69)
