input.js 125 B

1234567
  1. var map = (fn) => (array) => array.map(fn);
  2. var result = [10,20] |> map(x => x * 20);
  3. expect(result).toEqual([200, 400]);