Describe the feature
If a function is declared inside an array or object, unused arguments don't get removed.
const arr = [
function test(unused) {}
]
const obj = {
a: function test(unused) {}
}
function test(unused) {}
console.log(arr, obj, test)
Output:
console.log([
function(unused) {}
], {
a: function(unused) {}
}, function() {});
Babel plugin or link to the feature description
No response
Additional context
Playground link