I had feedback on the pull request below, just wondering which way is the right way to import lodash?
You are better off importing from 'lodash / has' .. For an earlier version of lodash (v3), which is pretty heavy in itself, we should only import the specidic module / function instead of importing the entire lodash library. Not sure about the newer version (v4).
import has from 'lodash/has';
against
import { has } from 'lodash';
thank
javascript lodash babeljs
Bruce Feb 07 '16 at 6:32 2016-02-07 06:32
source share