Tests if an arbitrary value is a Nothing case of a Maybe instance.
Tests if an arbitrary value is a Nothing case of a Maybe instance.
const Maybe = require('folktale/maybe');
Maybe.Nothing.hasInstance(Maybe.Just(1));
// ==> false
Maybe.Nothing.hasInstance(Maybe.Nothing());
// ==> true
hasInstance(value) {
        return Boolean(value) 
        &&     adt.hasInstance(value) 
        &&     value[TAG] === name;
      }