We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dd81ec commit 951e888Copy full SHA for 951e888
readme.md
@@ -892,7 +892,7 @@ const getItem = (cart) => maybeProp('item', cart)
892
const getPrice = (item) => maybeProp('price', item)
893
894
// getNestedPrice :: cart -> Option a
895
-const getNestedPrice = (cart) => getItem(obj).chain(getPrice)
+const getNestedPrice = (cart) => getItem(cart).chain(getPrice)
896
897
getNestedPrice({}) // None()
898
getNestedPrice({item: {foo: 1}}) // None()
0 commit comments