https://wikimass.com/js/miscellaneous-methods