You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 10, 2024. It is now read-only.
**This module is deprecated and no longer maintained. Use [optional chaining](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Operators/Optional_chaining) instead.**
4
4
5
5
`idx` is a utility function for traversing properties on objects and arrays,
6
6
where intermediate properties may be null or undefined.
7
7
8
-
**This module has since been deprecated, in favor of [optional chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining).**
9
-
10
8
One notable difference between `idx` and optional chaining is what happens when
11
9
an intermediate property is null or undefined. With `idx`, the null or undefined
12
10
value is returned, whereas optional chaining would resolve to undefined.
0 commit comments