J. S. Choi 35e4e1f067 Hack-pipe proposal with % topic token (#13416)
Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
2021-08-03 23:30:16 +02:00

7 lines
149 B
JavaScript

const result = () => -2.2 // -2.2
|> Math.floor(%) // -3
|> (() => Math.pow(%, 5)) // () => -243
|> %(); // -243
expect(result()).toBe(-243);