DEV Community

Discussion on: Daily Challenge #184 - Form the Minimum

Collapse
 
mellen profile image
Matt Ellen • Edited
const minValue = ns => parseInt([...(new Set(ns))].sort().join(''));
Collapse
 
georgewl profile image
George WL • Edited

Even works for [7,0,2], neat