mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
11 lines
172 B
JavaScript
11 lines
172 B
JavaScript
function area(rect) {
|
|
return rect.width * rect.height;
|
|
}
|
|
|
|
const result = -5
|
|
|> Math.abs(@@)
|
|
|> { width: @@, height: @@ + 3 }
|
|
|> area(@@);
|
|
|
|
expect(result).toBe(40);
|