INNER CODE UNIT · TypeScript

arr

mongodb-js/mongosh · packages/async-rewriter-spec/src/index.ts:906

          const arr = [() => 0, implicitlyAsyncFn];
          arr.findIndex((fn) => fn());
        `)
        ).to.equal(1);
      });

      it('supports Array.prototype.reduce', async function () {
        implicitlyAsyncFn.callsFake((left, right) => left + right);
        expect(
          await runTranspiledCode(`
          [1,2,3].reduce(implicitlyAsyncFn, 0)
        `)
        ).to.equal(6);
      });

      it('supports Array.prototype.reduceRight', async function () {
        implicitlyAsyncFn.callsFake((left, right) => left + right);
        expect(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…