@polesye Wouldn't it be better to add this function in ```helper.js``` as it could be quite useful elsewhere?