2 ms·
There is a proposal for a :: bind operator. 1. a unary :: operator for binding methods to their objects: `foo.then(::console.log)` 2. a binary :: operator for
by pluma 11y ago
There is a proposal for a :: bind operator.
1. a unary :: operator for binding methods to their objects: `foo.then(::console.log)`
2. a binary :: operator for chaining: `x(a)::y(b)` (equivalent to `y.call(x(a), b)`)