问题 Is there something like is-map($some_variable) in SASS? I have tried looking into the documentation but there is none there. 回答1: You can implement it with the type-of function, like this one: @function is-map($var){ @return type-of($var) == 'map'; } 来源: https://stackoverflow.com/questions/39052819/sass-check-if-a-variable-is-a-map