mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
c6b22c57f8
Co-authored-by: Fábio Santos <fabiosantosart@gmail.com>
10 lines
200 B
JavaScript
10 lines
200 B
JavaScript
function foo(data = []) {
|
|
var u,
|
|
v = "unused";
|
|
if (arguments.length == 1) {
|
|
data = [data];
|
|
}
|
|
return data;
|
|
}
|
|
console.log(JSON.stringify([foo(), foo(null), foo(5, 6)]));
|