If you throw out your onion ends, you're wasting an opportunity!
Turn them into more onions instead.
Plant them in moist soil and make sure it doesn't dry out.
You should get several shoots.
Separate the shoots, making sure each has some roots, and replant.
To help the onions grow faster, cut down the shoots so that all the energy will go into the onions.