# Zero-cost way to check if \`NamedTuple\` has a field?

**URL:** <https://discourse.julialang.org/t/zero-cost-way-to-check-if-namedtuple-has-a-field/24684>\
**Category:** General Usage\
**Tags:** question\
**Created:** [May 28, 2019, 9:56am UTC](https://discourse.julialang.org/t/zero-cost-way-to-check-if-namedtuple-has-a-field/24684 "2019-05-28T09:56:52Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [May 28, 2019, 10:23am UTC](https://discourse.julialang.org/t/zero-cost-way-to-check-if-namedtuple-has-a-field/24684/3 "2019-05-28T10:23:03Z")

</div>

Maybe related: [Is the first key of a NamedTuple special?](https://discourse.julialang.org/t/is-the-first-key-of-a-namedtuple-special/21256)

---

_[View the full topic](https://discourse.julialang.org/t/zero-cost-way-to-check-if-namedtuple-has-a-field/24684)._
