Created
May 12, 2015 22:50
-
-
Save nex3/598197bcd8a4ce2e711e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@function safe($name, $args...) { | |
@each $arg in join($args, map-values(keywords($args))) { | |
@if $arg == null { | |
@return null; | |
} | |
} | |
@return call($name, $args...); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For reference, the second line is here so that all of these use cases work as expected: