UNPKG

lift-result

Version:

lift functions so they can handle Results as if they were plain values

15 lines (11 loc) 236 B
var lift = require('./') /** * apply arguments to the last argument * * @param {x} ... * @param {Function} fn * @return {x} */ module.exports = lift(function(){ return arguments[--arguments.length].apply(this, arguments) })