UNPKG

fully-optional

Version:
20 lines (19 loc) 731 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var curryLast_1 = __importDefault(require("./curryLast")); var withDefaultLazy_1 = require("./withDefaultLazy"); var _withDefault = function (value, defaultValue) { return withDefaultLazy_1.withDefaultLazy(value, function () { return defaultValue; }); }; function withDefault() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } return curryLast_1.default(_withDefault, args); } exports.withDefault = withDefault; exports.default = withDefault;