fuxt icon indicating copy to clipboard operation
fuxt copied to clipboard

Remove lodash _get() functions

Open drewbaker opened this issue 3 years ago • 3 comments
trafficstars

Let's replace this sort of code: const pages = _get(data, "creators.children.nodes", []) || []

With this: const pages = data?.creators?.children?.nodes || []

drewbaker avatar Apr 20 '22 18:04 drewbaker

Perhaps worth dropping lodash altogether

drewbaker avatar Apr 20 '22 18:04 drewbaker

Make sure we get the linter working with this syntax

drewbaker avatar May 31 '22 18:05 drewbaker

Good example here: https://github.com/funkhaus/tool-frontend/blob/master/templates/projects-department.vue#L61-L64

drewbaker avatar Oct 24 '22 18:10 drewbaker

This was done awhile ago

drewbaker avatar Feb 24 '23 16:02 drewbaker