lodash增加了groupBy
This commit is contained in:
parent
958d2a6b60
commit
f6e56fa48c
|
|
@ -15,4 +15,5 @@ import pick from 'lodash/pick';
|
|||
import isEqual from 'lodash/isEqual';
|
||||
import union from 'lodash/union';
|
||||
import difference from 'lodash/difference';
|
||||
export { unset, pull, uniq, get, set, intersection, omit, merge, cloneDeep, pick, isEqual, union, difference, };
|
||||
import groupBy from 'lodash/groupBy';
|
||||
export { unset, pull, uniq, get, set, intersection, omit, merge, cloneDeep, pick, isEqual, union, difference, groupBy, };
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.difference = exports.union = exports.isEqual = exports.pick = exports.cloneDeep = exports.merge = exports.omit = exports.intersection = exports.set = exports.get = exports.uniq = exports.pull = exports.unset = void 0;
|
||||
exports.groupBy = exports.difference = exports.union = exports.isEqual = exports.pick = exports.cloneDeep = exports.merge = exports.omit = exports.intersection = exports.set = exports.get = exports.uniq = exports.pull = exports.unset = void 0;
|
||||
var tslib_1 = require("tslib");
|
||||
/**
|
||||
* 避免lodash打包体积过大
|
||||
|
|
@ -32,3 +32,5 @@ var union_1 = tslib_1.__importDefault(require("lodash/union"));
|
|||
exports.union = union_1.default;
|
||||
var difference_1 = tslib_1.__importDefault(require("lodash/difference"));
|
||||
exports.difference = difference_1.default;
|
||||
var groupBy_1 = tslib_1.__importDefault(require("lodash/groupBy"));
|
||||
exports.groupBy = groupBy_1.default;
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ import pick from 'lodash/pick';
|
|||
import isEqual from 'lodash/isEqual';
|
||||
import union from 'lodash/union';
|
||||
import difference from 'lodash/difference';
|
||||
import groupBy from 'lodash/groupBy';
|
||||
|
||||
export {
|
||||
unset,
|
||||
|
|
@ -30,4 +31,5 @@ export {
|
|||
isEqual,
|
||||
union,
|
||||
difference,
|
||||
groupBy,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue