DEPRECATED! please use apply-with instead!
apply a (asynchronous) function to an object and return this object, similar to kotlin's apply
$ npm i oapply
$ npm run test
oapply(
Promise.resolve({ a: 1 }),
it => ++it.a,
it => { it.a += 2 }
).then(it => console.log(it.a)) // output 4