Hacker GitHub

← All repos

meta/idx

View on GitHub ↗ ★ 1,687 JavaScript archived

Library for accessing arbitrarily nested, possibly nullable properties on a JavaScript object.

4 mentions on Hacker News by 4 people: 0 stories, 4 comments · first 2018-03-31 · latest 2019-09-12

Mentions per year 4 mentions · busiest year 2018 (2)
20082026
  1. Hadn't seen this before, but I've been using a library from Facebook called idx: https://github.com/facebookincubator/idx Idx is a bit more verbose because you have to write an arrow function for each invocation, and it doesn't support…
  2. Because they were using a demo function from a JS lib that attempts to match error messages: https://github.com/facebookincubator/idx >The idx runtime function exists for the purpose of illustrating the expected behavior and is not meant…
  3. …for js, makes it arguably more pleasant to deal with null values, no help for chaining though! [0] https://github.com/facebookincubator/idx [1] https://github.com/JasonStorey/Optional.js
  4. …Optional chaining[2] would add this to JS at the language level by using ?. as the operator. [0]: https://github.com/facebookincubator/idx [1]: https://github.com/dralletje/idx.macro [2]: https://github.com/tc39/proposal-optional-chaining