Skip to content

Releases: wmakeev/maybe

v0.4.0

03 Sep 09:14
Compare
Choose a tag to compare
  • Export Just and Nothing classes
import { Just, Nothing } from `@wmakeev/mabes`

class MyJust extends Just {
  constructor (value) {
    super(value)
  }
  // ...
}

let myJust = new MyJust(123)

v0.3.0

02 Sep 19:07
Compare
Choose a tag to compare
  • Add get method to maybe

    const objValue = maybe({ book: { id: '3' } })
    
    objValue.get('book.id') // Maybe(3)
    
    objValue.get('foo.bar') // nothing