using invoker for older Array.prototype-style functions