convert lazy.js to lodash