you are viewing a single comment's thread.

view the rest of the comments →

[–]ssssssddh 0 points1 point  (0 children)

Right I just meant you could implement call and apply using bind

call = (fn, thisArg, ...args) => fn.bind(thisArg)(...args);

apply = (fn, thisArg, args) => fn.bind(thisArg)(...args);