139. implement _.partial()

JavaScriptLodash

medium  - accepted / - tried

_.partial() works like Function.prototype.bind() but this is not bound.

please create your own partial()

const func = (...args) => argsconst func123 = partial(func, 1,2,3)func123(4)

It should also support placeholder.

const _ = partial.placeholderconst func1_3 = partial(func, 1, _, 3)func1_3(2,4)

Related Lists

lodash

Always try to find a better approach.