(I think) I have tried every .bind , .call() or .apply version,
But I can't make F2("World!") work
var F1 = window["document"]["body"];
// works fine:
F1["append"]("Hello")
var F2 = F1["append"];
// valid function append()
console.log( F2 );
// Illegal invocation
F2("World!");
Would like to get it working in:
let D=["document", "body", "append"];
([0,1,2].reduce((root, x) => root[D[x]], window))('World!');