Suppose i have a variable:
$var: 5px;
but somewhere in code its value have changed in to possible color, number, em, rm etc.
Is there any function to detect which type of value it has?
i.e
@if is-color($var) { //do something }
I know there is no is-color function in sass but are there other methods to do this or function?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…