Closed sphynx79 closed 6 years ago
Additional arguments support was removed. Use function scope instead. https://github.com/ds300/derivablejs/commit/371012e9e12358fb6ee936a0b287b6ff8689868f
const x = atom(4);
const times = (a, b) => a * b;
const xTimesTwo = x.derive((x)=> times(x,2));
in this way
Yep, this way.
also if i preferer old way!!
Thanks.
Docs is a bad side of this project. If you would like to help with it I'm open for questions.
Hi,
i try to use this simple code in derivable 2.0.0-beta.3, i take this code from documentation
but result is NaN
until version 2.0.0-beta.1 this code work fine