When it comes to importing functions from lodash, I have been advised by my coworker that it is more efficient to import each function individually rather than as a group.
The current method of importing:
import {fn1, fn2, fn3} from 'lodash';
The preferred method suggested:
import fn1 from 'lodash/fn1';
import fn2 from 'lodash/fn2';
import fn3 from 'lodash/fn3';
According to her explanation, the latter approach results in less code being imported since it does not bring in the entire lodash library.
Can you confirm if this reasoning is accurate?