These are chat archives for ramda/ramda

3rd
May 2018
Renato Marinho
@renatomarinho
May 03 2018 04:40
This message was deleted
Tomáš Konrády
@tommmyy
May 03 2018 10:28
Hello, is there better way (in term of performance) to write function addTabIndex? https://goo.gl/bSFk78
Tomáš Konrády
@tommmyy
May 03 2018 12:51
Managed to clean up the code little bit: https://goo.gl/axmbPF ... but still it is too complex for me...
Rolf Strijdhorst
@rolfst
May 03 2018 14:44
@6ewis for many properties at once use lenses
Ben Briggs
@ben-eb
May 03 2018 20:17
@ellipticaldoor Also I think it'd be good to order the arguments with the method first, it's then easier to partially apply :)
Ben Briggs
@ben-eb
May 03 2018 20:22
@tommmyy You can drop a map out of there for starters: https://goo.gl/awxuJh
@tommmyy Also I don't know about the consuming code but you can lose i and sort by tabIndex instead, it's redundant to have the same value defined twice there