现在,我们可以在浏览器上执行以下操作:var a = 10;export {a,a as aa};export function f(){return m;};然后在主文件上,比如index.html:<script type="module">
import {a,b,aa,aa as aaa, f, cl} from "./
我希望在方法链的中间看到数组的状态: arr.filter(...) .map(...) // say I want to see the array content at this point .slice(0, 10) 我可以通过使用underscorejs中的tap()函数来实现这一点,如this answer中所述。但是我想在不使用任何库的情况下做到这一点。 我浏览了一下Array prototype fun