refactor: get rid of `asArray` helper method and adapt `getStylesForTargetHeight`
refactor: get rid of `asArray` helper method and adapt `getStylesForTargetHeight`

owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher