maybeAttr
lib.misc.maybeAttr
Docs pulled from | This Revision | 10 minutes ago
Deprecated
shortcut for attrByPath ["name"] default attrs
Noogle detected
Implementation
The following is the current implementation of this function.
maybeAttr =
name: default: attrs:
attrs.${name} or default;