Deprecate utility tag

This commit is contained in:
Angelos Chalaris
2020-04-16 23:07:33 +03:00
parent 5e42f0aaa4
commit e31aea403d
60 changed files with 118 additions and 117 deletions

View File

@ -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)'
```
```