Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anoying warnings when map-get-deep() is used to test if child exists #16

Open
LoicGoyet opened this issue Aug 31, 2016 · 0 comments
Open

Comments

@LoicGoyet
Copy link

I need to use the map-get-deep() function to test if some map children values exists. It works great but when the test returns null it generates a @warning that can be annoying if the process is executed into a loop.

I succeed to avoid the "@warning" to pop by overriding the map-get-deep-warning() function by this way :

@function map-get-deep-warning($warn, $get) {
  @return null;
}

It makes the trick, but in a dirty way. It could be nice to have a function like map-has-key but for deep values following your pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant