Destructure Lodash requires

This commit is contained in:
Daniel Gasienica 2018-04-02 15:08:53 -04:00
parent b7b6195cfc
commit d9be6a0f94
13 changed files with 46 additions and 37 deletions

View file

@ -2,10 +2,12 @@
const Path = require('path');
const compose = require('lodash/fp/compose');
const escapeRegExp = require('lodash/escapeRegExp');
const isRegExp = require('lodash/isRegExp');
const isString = require('lodash/isString');
const {
escapeRegExp,
isRegExp,
isString,
} = require('lodash');
const { compose } = require('lodash/fp');
const PHONE_NUMBER_PATTERN = /\+\d{7,12}(\d{3})/g;