1

Is this correct to create a file in which I'll put all imports?

// lodash-helper.js
export const isEqual = import('lodash/isEqual');
export const includes = import ('lodash/includes');
export const filter = import ('lodash/filter');

// some-file.component.ts
import { isEqual } from 'src/core/helpers/lodash-helper'; // In this file I need only one import
R. Richards
  • 24,603
  • 10
  • 64
  • 64
amir.algazi
  • 189
  • 9

0 Answers0