xe-utils-es
Version:
JavaScript 函数库、工具类
69 lines (68 loc) • 2.46 kB
TypeScript
import map from './map';
import includeArrays from './includeArrays';
import arrayEach from './arrayEach';
import lastArrayEach from './lastArrayEach';
import uniq from './uniq';
import union from './union';
import toArray from './toArray';
import orderBy from './orderBy';
import shuffle from './shuffle';
import sample from './sample';
import slice from './slice';
import filter from './filter';
import includes from './includes';
import findLast from './findLast';
import reduce from './reduce';
import copyWithin from './copyWithin';
import chunk from './chunk';
import zip from './zip';
import unzip from './unzip';
import zipObject from './zipObject';
import flatten from './flatten';
import pluck from './pluck';
import invoke from './invoke';
import toArrayTree from './toArrayTree';
import toTreeArray from './toTreeArray';
import filterTree from './filterTree';
import arrayIndexOf from './arrayIndexOf';
import arrayLastIndexOf from './arrayLastIndexOf';
declare const arrayExports: {
uniq: typeof uniq;
union: typeof union;
sortBy: typeof orderBy;
orderBy: typeof orderBy;
shuffle: typeof shuffle;
sample: typeof sample;
some: (obj: any, iterate: any, context?: any) => any;
every: (obj: any, iterate: any, context?: any) => any;
slice: typeof slice;
filter: typeof filter;
find: (obj: any, iterate: any, context?: any) => any;
findLast: typeof findLast;
findKey: (obj: any, iterate: any, context?: any) => any;
includes: typeof includes;
arrayIndexOf: typeof arrayIndexOf;
arrayLastIndexOf: typeof arrayLastIndexOf;
map: typeof map;
reduce: typeof reduce;
copyWithin: typeof copyWithin;
chunk: typeof chunk;
zip: typeof zip;
unzip: typeof unzip;
zipObject: typeof zipObject;
flatten: typeof flatten;
toArray: typeof toArray;
includeArrays: typeof includeArrays;
pluck: typeof pluck;
invoke: typeof invoke;
arrayEach: typeof arrayEach;
lastArrayEach: typeof lastArrayEach;
toArrayTree: typeof toArrayTree;
toTreeArray: typeof toTreeArray;
findTree: (obj: any, iterate: any, options?: any, context?: any) => any;
eachTree: (obj: any, iterate: any, options?: any, context?: any) => any;
mapTree: (obj: any, iterate: any, options?: any, context?: any) => any;
filterTree: typeof filterTree;
searchTree: (obj: any, iterate: any, options?: any, context?: any) => any;
};
export default arrayExports;