Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
is-map($some_variable)SASS中有类似的东西吗?
is-map($some_variable)
我曾尝试查看文档,但那里没有。
您可以使用type-of函数来实现它,如下所示:
type-of
@function is-map($var){ @return type-of($var) == 'map'; }