Deprecate utility tag
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: hexToRGB
|
||||
tags: utility,string,math,advanced
|
||||
tags: string,math,advanced
|
||||
---
|
||||
|
||||
Converts a color code to a `rgb()` or `rgba()` string if alpha value is provided.
|
||||
@ -33,4 +33,4 @@ const hexToRGB = hex => {
|
||||
hexToRGB('#27ae60ff'); // 'rgba(39, 174, 96, 255)'
|
||||
hexToRGB('27ae60'); // 'rgb(39, 174, 96)'
|
||||
hexToRGB('#fff'); // 'rgb(255, 255, 255)'
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user