Obviously sleep impacts your height. If you sleep less then you get less GH pulses. GH pulses mostly come at night during REM sleep (usually dreaming state, though many do get in REM sleep without dreaming).
But I doubt it stunted you more than an inch, two MAX. Definitely does influence your height, but nearly nothing compared to getting genetics. Genetics determines basically the majority, barring except of course a lack of nutrition or malnourishment. It might've kept you from reaching your genetic potential, but don't act like if both your mom and dad was 5' 2 and you slept all day you would be 6 foot or something. You probably still would've been 5' 5 if you slept like a baby all 18 years of your childhood. Genetics overrides everything. You get mfers in Africa being 6' 5 with like no nutrition and lookin like twigs- they aint tall cuz they got the secret sleep schedule or food, they call cuz their DNA be tall.