DEV Community

Discussion on: Interview Qs Decoded - # 1

Collapse
 
iainfreestone profile image
Iain Freestone

My solution using using the Ramda library

const secondLargest = pipe(sort(subtract),dropLast(1),last)