Algorithm to find the closest match (Closest predefined screen dimension) // xs sm md lg xl var screenDims = [375, 540, 720, 960, 1140]; function getClosestScreenWidth(input) { return screenDims.reduce((a, b) => { return Math.abs(b - input) < Math....
forward.hashnode.dev1 min readNo responses yet.