refactor (lodash): remov lodash and provid custom implementation of required functions