From 9b0f68f9a99574917616001b6cd95d54cb263df4 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 18 Oct 2017 17:22:58 +0300 Subject: Include only used lodash functions --- src/utils/lodash.ts | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/utils/lodash.ts (limited to 'src/utils/lodash.ts') diff --git a/src/utils/lodash.ts b/src/utils/lodash.ts new file mode 100644 index 000000000..67e4e5a9a --- /dev/null +++ b/src/utils/lodash.ts @@ -0,0 +1,55 @@ +import assign from 'lodash-es/assign'; +import map from 'lodash-es/map'; +import values from 'lodash-es/values'; +import isUndefined from 'lodash-es/isUndefined'; +import isNull from 'lodash-es/isNull'; +import includes from 'lodash-es/includes'; +import each from 'lodash-es/each'; +import forEach from 'lodash-es/forEach'; +import filter from 'lodash-es/filter'; +import startsWith from 'lodash-es/startsWith'; +import padStart from 'lodash-es/padStart'; +import find from 'lodash-es/find'; +import zipWith from 'lodash-es/zipWith'; +import every from 'lodash-es/every'; +import isEmpty from 'lodash-es/isEmpty'; +import unzip from 'lodash-es/unzip'; +import pull from 'lodash-es/pull'; +import keys from 'lodash-es/keys'; +import uniq from 'lodash-es/uniq'; +import isArray from 'lodash-es/isArray'; +import isObject from 'lodash-es/isObject'; +import isString from 'lodash-es/isString'; +import isFinite from 'lodash-es/isFinite'; +import isNumber from 'lodash-es/isNumber'; +import isBoolean from 'lodash-es/isBoolean'; +import isFunction from 'lodash-es/isFunction'; + +export const _ = { + assign, + map, + values, + isUndefined, + isNull, + includes, + each, + forEach, + filter, + startsWith, + padStart, + find, + zipWith, + every, + isEmpty, + unzip, + pull, + keys, + uniq, + isArray, + isObject, + isString, + isFinite, + isNumber, + isBoolean, + isFunction, +}; -- cgit v1.2.3