mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
11 lines
196 B
JavaScript
11 lines
196 B
JavaScript
function f(a, ...rest) {
|
|
let b = rest[rest.length - 3];
|
|
let c = rest[rest.length - 2];
|
|
let d = rest[rest.length - 1];
|
|
return [a, b, c, d];
|
|
}
|
|
|
|
function f(a, ...rest) {
|
|
return rest[-1];
|
|
}
|