query
On this page

maybeAttr

lib.maybeAttr

Docs pulled from | This Revision | about 2 hours ago


shortcut for attrByPath ["name"] default attrs


Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

maybeAttr = name: default: attrs: attrs.${name} or default;