UNPKG

entrust

Version:

delegatee-last structure for curried functions

24 lines (20 loc) 530 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.e0 = exports.entrust0 = undefined; var _katsuCurry = require('katsu-curry'); var entrust0 = exports.entrust0 = function entrust0(fn, x) { return x[fn](); }; /** * @method e0 * @param {string} fn - a function name * @param {Object} x - an object * @returns {*} * @example * import {e0} from 'entrust' * const toLowerCase = e0(`toLowerCase`) * toLowerCase(`COOL`) // cool */ var e0 = exports.e0 = (0, _katsuCurry.curry)(entrust0);