array.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. 'use strict'
  2. var map = require('./map')
  3. var some = require('./some')
  4. var every = require('./every')
  5. var includeArrays = require('./includeArrays')
  6. var arrayEach = require('./arrayEach')
  7. var lastArrayEach = require('./lastArrayEach')
  8. var uniq = require('./uniq')
  9. var union = require('./union')
  10. var toArray = require('./toArray')
  11. var sortBy = require('./sortBy')
  12. var orderBy = require('./orderBy')
  13. var shuffle = require('./shuffle')
  14. var sample = require('./sample')
  15. var slice = require('./slice')
  16. var filter = require('./filter')
  17. var findKey = require('./findKey')
  18. var includes = require('./includes')
  19. var find = require('./find')
  20. var findLast = require('./findLast')
  21. var reduce = require('./reduce')
  22. var copyWithin = require('./copyWithin')
  23. var chunk = require('./chunk')
  24. var zip = require('./zip')
  25. var unzip = require('./unzip')
  26. var zipObject = require('./zipObject')
  27. var flatten = require('./flatten')
  28. var pluck = require('./pluck')
  29. var invoke = require('./invoke')
  30. var toArrayTree = require('./toArrayTree')
  31. var toTreeArray = require('./toTreeArray')
  32. var findTree = require('./findTree')
  33. var eachTree = require('./eachTree')
  34. var mapTree = require('./mapTree')
  35. var filterTree = require('./filterTree')
  36. var searchTree = require('./searchTree')
  37. var arrayIndexOf = require('./arrayIndexOf')
  38. var arrayLastIndexOf = require('./arrayLastIndexOf')
  39. var arrayExports = {
  40. uniq: uniq,
  41. union: union,
  42. sortBy: sortBy,
  43. orderBy: orderBy,
  44. shuffle: shuffle,
  45. sample: sample,
  46. some: some,
  47. every: every,
  48. slice: slice,
  49. filter: filter,
  50. find: find,
  51. findLast: findLast,
  52. findKey: findKey,
  53. includes: includes,
  54. arrayIndexOf: arrayIndexOf,
  55. arrayLastIndexOf: arrayLastIndexOf,
  56. map: map,
  57. reduce: reduce,
  58. copyWithin: copyWithin,
  59. chunk: chunk,
  60. zip: zip,
  61. unzip: unzip,
  62. zipObject: zipObject,
  63. flatten: flatten,
  64. toArray: toArray,
  65. includeArrays: includeArrays,
  66. pluck: pluck,
  67. invoke: invoke,
  68. arrayEach: arrayEach,
  69. lastArrayEach: lastArrayEach,
  70. toArrayTree: toArrayTree,
  71. toTreeArray: toTreeArray,
  72. findTree: findTree,
  73. eachTree: eachTree,
  74. mapTree: mapTree,
  75. filterTree: filterTree,
  76. searchTree: searchTree
  77. }
  78. module.exports = arrayExports