Skip to content

Commit

Permalink
Update code in readme, for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalman committed Sep 8, 2023
1 parent be750de commit 143c147
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,21 @@ npm i ua-client-hints-js

## Methods

`setValuesFromHeaders(headers:object): UAClientHints`
```js
setValuesFromHeaders(headers:object): UAClientHints
```

`setValues(object): UAClientHints`
```js
setValues(object): UAClientHints
```

`getValues([fields:string[]]): object`
```js
getValues([fields:string[]]): object
```

`getValuesAsHeaders([fields:string[]]): object`
```js
getValuesAsHeaders([fields:string[]]): object
```

## Code Example

Expand Down

0 comments on commit 143c147

Please sign in to comment.