juh juh
08/17/2022, 9:23 PMJeff Lockhart
08/17/2022, 9:34 PMjw
08/17/2022, 9:51 PMjs("[]")
juh juh
08/17/2022, 9:52 PMGrégory Lureau
08/18/2022, 7:28 AMjuh juh
08/18/2022, 8:22 AMGrégory Lureau
08/18/2022, 8:37 AMjuh juh
08/18/2022, 8:44 AMfun <T> Array<T>.push(item: T) {
js("this.push(item)")
}
gets compiled into
function push(_this__u8e3s4, item) {
this.push(item);
}
jw
08/18/2022, 11:03 AMval array = this
and then array.push
inside the JS string