• http://vojtechruzicka.com/ Vojtěch Růžička

    Handy, thank you. You may consider publishing it as a NPM module 🙂

    • http://davidjs.com/ DavidVotrubec

      Thank you.
      But I am not sure if such a short function should be a yet another dependency in npm hell 🙂
      It might be easier to just copy this code and possibly modify according to personal preferences.