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
20082026
-
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…
comment by Shakahs · 2019-09-12 · in TypeScript 3.7: The Biggest Features and How to Use Them -
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…
comment by oftenwrong · 2019-03-26 · in Add detailed message to NullPointerException describing what is null -
…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
comment by harunurhan · 2018-03-31 · in Show HN: Nothing.js – A chainable mock object which always returns itself -
…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
comment by m0meni · 2018-03-31 · in Show HN: Nothing.js – A chainable mock object which always returns itself