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 has been archived by the owner on Jan 10, 2024. It is now read-only.
This was proposed in #5 (which contains an explanation for why we don't want to extend idx beyond what is currently being proposed for the JavaScript language.
I think it would be nice to add an additional export of the idx function which will allow us to pass in a default value.
Since idx has its own type, it would be quite difficult to create a wrapper around idx without breaking the current type signature.
I propose an API that looks like this:
Similar to ramda's
pathOr
function http://ramdajs.com/docs/#pathOrThe text was updated successfully, but these errors were encountered: