UNPKG

fully-optional

Version:
17 lines (16 loc) 397 B
import curryLast from './curryLast'; import match from './match'; var _bind = function (value, f) { return match(value, { some: f, none: function () { return undefined; }, }); }; export function bind() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } return curryLast(_bind, args); } export default bind;