a utility to safely invoke?
before 2016:
const { call } = Function;
const apply = call.bind(call, Function.apply);
apply(callback, context, args);
after 2016:
const { apply } = Reflect;
apply(callback, context, args);
I often forget myself I can just trap Reflect utilities🤦
6 months ago