mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 02:48:23 +01:00
Destructure Lodash requires
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
const isFunction = require('lodash/isFunction');
|
||||
const isString = require('lodash/isString');
|
||||
const { isFunction, isString } = require('lodash');
|
||||
|
||||
const MIME = require('./mime');
|
||||
const { arrayBufferToBlob, blobToArrayBuffer, dataURLToBlob } = require('blob-util');
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
const isArrayBuffer = require('lodash/isArrayBuffer');
|
||||
const isFunction = require('lodash/isFunction');
|
||||
const isUndefined = require('lodash/isUndefined');
|
||||
const omit = require('lodash/omit');
|
||||
const {
|
||||
isArrayBuffer,
|
||||
isFunction,
|
||||
isUndefined,
|
||||
omit,
|
||||
} = require('lodash');
|
||||
|
||||
|
||||
// type Context :: {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const isFunction = require('lodash/isFunction');
|
||||
const { isFunction } = require('lodash');
|
||||
|
||||
const Attachment = require('./attachment');
|
||||
const Errors = require('./errors');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const isNumber = require('lodash/isNumber');
|
||||
const { isNumber } = require('lodash');
|
||||
|
||||
|
||||
exports.isValid = value =>
|
||||
|
||||
Reference in New Issue
Block a user