UNPKG

maybe-monade

Version:

Maybe monad implementation in Typescript

11 lines (10 loc) 387 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isNullOrUndefined = function (value) { return value === null || typeof value === "undefined"; }; exports.ErrorMessages = { emptyValue: "Provided value must not be empty", emptyCallback: "Provided value must be a function", getEmptyValue: "You try to access an empty value" };