• Sign in
  • Sign up 
  • Welcome
  • FAQ
  • Switch to Night Mode
  • Stolen Accounts Recovery 
  • Change Account Password 
  • Vote for Witnesses 
  • Steem Proposals 
  • Developer Portal 
  • Steem Bluepaper 
  • SMT Whitepaper 
  • Steem Whitepaper 
  • Privacy Policy
  • Terms of Service
Homeby Witness Moecki
LoginSign up

Safer JavaScript with the Maybe Type

rcp (25)in #javascript • 7 years ago


Safer JavaScript with the Maybe Type

01 Safer JavaScript with the Maybe type
02 Understand the Maybe Data Type
03 Create a Maybe with a safe Utility Function
04 Unwrap Values from a Maybe
05 Safely Access Object Properties with prop
06 Safely Access Nested Object Properties with propPath
07 Flatten Nested Maybes with chain
08 Recover from a Nothing with the alt method
09 Recover from a Nothing with the coalesce Method
10 Compose Functions for Reusability with the Maybe Type
11 Apply a function in a Maybe context to Maybe inputs
12 Make your own functions safer by lifting them into a Maybe context


▶️ DTube
▶️ IPFS
#egghead #maybe #functional #dtube
7 years ago in #javascript by rcp (25)
$0.00
    1 vote
    • + ax3
    Reply 0