No Description

index.js 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. // Named Exports
  2. // =============
  3. // Underscore.js 1.13.1
  4. // https://underscorejs.org
  5. // (c) 2009-2021 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
  6. // Underscore may be freely distributed under the MIT license.
  7. // Baseline setup.
  8. export { VERSION } from './_setup.js';
  9. export { default as restArguments } from './restArguments.js';
  10. // Object Functions
  11. // ----------------
  12. // Our most fundamental functions operate on any JavaScript object.
  13. // Most functions in Underscore depend on at least one function in this section.
  14. // A group of functions that check the types of core JavaScript values.
  15. // These are often informally referred to as the "isType" functions.
  16. export { default as isObject } from './isObject.js';
  17. export { default as isNull } from './isNull.js';
  18. export { default as isUndefined } from './isUndefined.js';
  19. export { default as isBoolean } from './isBoolean.js';
  20. export { default as isElement } from './isElement.js';
  21. export { default as isString } from './isString.js';
  22. export { default as isNumber } from './isNumber.js';
  23. export { default as isDate } from './isDate.js';
  24. export { default as isRegExp } from './isRegExp.js';
  25. export { default as isError } from './isError.js';
  26. export { default as isSymbol } from './isSymbol.js';
  27. export { default as isArrayBuffer } from './isArrayBuffer.js';
  28. export { default as isDataView } from './isDataView.js';
  29. export { default as isArray } from './isArray.js';
  30. export { default as isFunction } from './isFunction.js';
  31. export { default as isArguments } from './isArguments.js';
  32. export { default as isFinite } from './isFinite.js';
  33. export { default as isNaN } from './isNaN.js';
  34. export { default as isTypedArray } from './isTypedArray.js';
  35. export { default as isEmpty } from './isEmpty.js';
  36. export { default as isMatch } from './isMatch.js';
  37. export { default as isEqual } from './isEqual.js';
  38. export { default as isMap } from './isMap.js';
  39. export { default as isWeakMap } from './isWeakMap.js';
  40. export { default as isSet } from './isSet.js';
  41. export { default as isWeakSet } from './isWeakSet.js';
  42. // Functions that treat an object as a dictionary of key-value pairs.
  43. export { default as keys } from './keys.js';
  44. export { default as allKeys } from './allKeys.js';
  45. export { default as values } from './values.js';
  46. export { default as pairs } from './pairs.js';
  47. export { default as invert } from './invert.js';
  48. export { default as functions,
  49. default as methods } from './functions.js';
  50. export { default as extend } from './extend.js';
  51. export { default as extendOwn,
  52. default as assign } from './extendOwn.js';
  53. export { default as defaults } from './defaults.js';
  54. export { default as create } from './create.js';
  55. export { default as clone } from './clone.js';
  56. export { default as tap } from './tap.js';
  57. export { default as get } from './get.js';
  58. export { default as has } from './has.js';
  59. export { default as mapObject } from './mapObject.js';
  60. // Utility Functions
  61. // -----------------
  62. // A bit of a grab bag: Predicate-generating functions for use with filters and
  63. // loops, string escaping and templating, create random numbers and unique ids,
  64. // and functions that facilitate Underscore's chaining and iteration conventions.
  65. export { default as identity } from './identity.js';
  66. export { default as constant } from './constant.js';
  67. export { default as noop } from './noop.js';
  68. export { default as toPath } from './toPath.js';
  69. export { default as property } from './property.js';
  70. export { default as propertyOf } from './propertyOf.js';
  71. export { default as matcher,
  72. default as matches } from './matcher.js';
  73. export { default as times } from './times.js';
  74. export { default as random } from './random.js';
  75. export { default as now } from './now.js';
  76. export { default as escape } from './escape.js';
  77. export { default as unescape } from './unescape.js';
  78. export { default as templateSettings } from './templateSettings.js';
  79. export { default as template } from './template.js';
  80. export { default as result } from './result.js';
  81. export { default as uniqueId } from './uniqueId.js';
  82. export { default as chain } from './chain.js';
  83. export { default as iteratee } from './iteratee.js';
  84. // Function (ahem) Functions
  85. // -------------------------
  86. // These functions take a function as an argument and return a new function
  87. // as the result. Also known as higher-order functions.
  88. export { default as partial } from './partial.js';
  89. export { default as bind } from './bind.js';
  90. export { default as bindAll } from './bindAll.js';
  91. export { default as memoize } from './memoize.js';
  92. export { default as delay } from './delay.js';
  93. export { default as defer } from './defer.js';
  94. export { default as throttle } from './throttle.js';
  95. export { default as debounce } from './debounce.js';
  96. export { default as wrap } from './wrap.js';
  97. export { default as negate } from './negate.js';
  98. export { default as compose } from './compose.js';
  99. export { default as after } from './after.js';
  100. export { default as before } from './before.js';
  101. export { default as once } from './once.js';
  102. // Finders
  103. // -------
  104. // Functions that extract (the position of) a single element from an object
  105. // or array based on some criterion.
  106. export { default as findKey } from './findKey.js';
  107. export { default as findIndex } from './findIndex.js';
  108. export { default as findLastIndex } from './findLastIndex.js';
  109. export { default as sortedIndex } from './sortedIndex.js';
  110. export { default as indexOf } from './indexOf.js';
  111. export { default as lastIndexOf } from './lastIndexOf.js';
  112. export { default as find,
  113. default as detect } from './find.js';
  114. export { default as findWhere } from './findWhere.js';
  115. // Collection Functions
  116. // --------------------
  117. // Functions that work on any collection of elements: either an array, or
  118. // an object of key-value pairs.
  119. export { default as each,
  120. default as forEach } from './each.js';
  121. export { default as map,
  122. default as collect } from './map.js';
  123. export { default as reduce,
  124. default as foldl,
  125. default as inject } from './reduce.js';
  126. export { default as reduceRight,
  127. default as foldr } from './reduceRight.js';
  128. export { default as filter,
  129. default as select } from './filter.js';
  130. export { default as reject } from './reject.js';
  131. export { default as every,
  132. default as all } from './every.js';
  133. export { default as some,
  134. default as any } from './some.js';
  135. export { default as contains,
  136. default as includes,
  137. default as include } from './contains.js';
  138. export { default as invoke } from './invoke.js';
  139. export { default as pluck } from './pluck.js';
  140. export { default as where } from './where.js';
  141. export { default as max } from './max.js';
  142. export { default as min } from './min.js';
  143. export { default as shuffle } from './shuffle.js';
  144. export { default as sample } from './sample.js';
  145. export { default as sortBy } from './sortBy.js';
  146. export { default as groupBy } from './groupBy.js';
  147. export { default as indexBy } from './indexBy.js';
  148. export { default as countBy } from './countBy.js';
  149. export { default as partition } from './partition.js';
  150. export { default as toArray } from './toArray.js';
  151. export { default as size } from './size.js';
  152. // `_.pick` and `_.omit` are actually object functions, but we put
  153. // them here in order to create a more natural reading order in the
  154. // monolithic build as they depend on `_.contains`.
  155. export { default as pick } from './pick.js';
  156. export { default as omit } from './omit.js';
  157. // Array Functions
  158. // ---------------
  159. // Functions that operate on arrays (and array-likes) only, because they’re
  160. // expressed in terms of operations on an ordered list of values.
  161. export { default as first,
  162. default as head,
  163. default as take } from './first.js';
  164. export { default as initial } from './initial.js';
  165. export { default as last } from './last.js';
  166. export { default as rest,
  167. default as tail,
  168. default as drop } from './rest.js';
  169. export { default as compact } from './compact.js';
  170. export { default as flatten } from './flatten.js';
  171. export { default as without } from './without.js';
  172. export { default as uniq,
  173. default as unique } from './uniq.js';
  174. export { default as union } from './union.js';
  175. export { default as intersection } from './intersection.js';
  176. export { default as difference } from './difference.js';
  177. export { default as unzip,
  178. default as transpose } from './unzip.js';
  179. export { default as zip } from './zip.js';
  180. export { default as object } from './object.js';
  181. export { default as range } from './range.js';
  182. export { default as chunk } from './chunk.js';
  183. // OOP
  184. // ---
  185. // These modules support the "object-oriented" calling style. See also
  186. // `underscore.js` and `index-default.js`.
  187. export { default as mixin } from './mixin.js';
  188. export { default } from './underscore-array-methods.js';