@types/lodash 4.14.108 → 4.14.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (701) hide show
  1. lodash/LICENSE +21 -21
  2. lodash/README.md +2 -2
  3. lodash/add.d.ts +2 -2
  4. lodash/after.d.ts +2 -2
  5. lodash/ary.d.ts +2 -2
  6. lodash/assign.d.ts +2 -2
  7. lodash/assignIn.d.ts +2 -2
  8. lodash/assignInWith.d.ts +2 -2
  9. lodash/assignWith.d.ts +2 -2
  10. lodash/at.d.ts +2 -2
  11. lodash/attempt.d.ts +2 -2
  12. lodash/before.d.ts +2 -2
  13. lodash/bind.d.ts +2 -2
  14. lodash/bindAll.d.ts +2 -2
  15. lodash/bindKey.d.ts +2 -2
  16. lodash/camelCase.d.ts +2 -2
  17. lodash/capitalize.d.ts +2 -2
  18. lodash/castArray.d.ts +2 -2
  19. lodash/ceil.d.ts +2 -2
  20. lodash/chain.d.ts +2 -2
  21. lodash/chunk.d.ts +2 -2
  22. lodash/clamp.d.ts +2 -2
  23. lodash/clone.d.ts +2 -2
  24. lodash/cloneDeep.d.ts +2 -2
  25. lodash/cloneDeepWith.d.ts +2 -2
  26. lodash/cloneWith.d.ts +2 -2
  27. lodash/common/array.d.ts +3708 -3708
  28. lodash/common/collection.d.ts +2575 -2575
  29. lodash/common/common.d.ts +268 -266
  30. lodash/common/date.d.ts +27 -27
  31. lodash/common/function.d.ts +1473 -1473
  32. lodash/common/lang.d.ts +1936 -1936
  33. lodash/common/math.d.ts +532 -532
  34. lodash/common/number.d.ts +178 -178
  35. lodash/common/object.d.ts +3761 -3737
  36. lodash/common/seq.d.ts +196 -196
  37. lodash/common/string.d.ts +1059 -1059
  38. lodash/common/util.d.ts +1463 -1463
  39. lodash/compact.d.ts +2 -2
  40. lodash/concat.d.ts +2 -2
  41. lodash/cond.d.ts +2 -2
  42. lodash/conformsTo.d.ts +2 -2
  43. lodash/constant.d.ts +2 -2
  44. lodash/countBy.d.ts +2 -2
  45. lodash/create.d.ts +2 -2
  46. lodash/curry.d.ts +2 -2
  47. lodash/curryRight.d.ts +2 -2
  48. lodash/debounce.d.ts +2 -2
  49. lodash/deburr.d.ts +2 -2
  50. lodash/defaultTo.d.ts +2 -2
  51. lodash/defaults.d.ts +2 -2
  52. lodash/defaultsDeep.d.ts +2 -2
  53. lodash/defer.d.ts +2 -2
  54. lodash/delay.d.ts +2 -2
  55. lodash/difference.d.ts +2 -2
  56. lodash/differenceBy.d.ts +2 -2
  57. lodash/differenceWith.d.ts +2 -2
  58. lodash/divide.d.ts +2 -2
  59. lodash/drop.d.ts +2 -2
  60. lodash/dropRight.d.ts +2 -2
  61. lodash/dropRightWhile.d.ts +2 -2
  62. lodash/dropWhile.d.ts +2 -2
  63. lodash/each.d.ts +2 -2
  64. lodash/eachRight.d.ts +2 -2
  65. lodash/endsWith.d.ts +2 -2
  66. lodash/entries.d.ts +2 -2
  67. lodash/entriesIn.d.ts +2 -2
  68. lodash/eq.d.ts +2 -2
  69. lodash/escape.d.ts +2 -2
  70. lodash/escapeRegExp.d.ts +2 -2
  71. lodash/every.d.ts +2 -2
  72. lodash/extend.d.ts +2 -2
  73. lodash/extendWith.d.ts +2 -2
  74. lodash/fill.d.ts +2 -2
  75. lodash/filter.d.ts +2 -2
  76. lodash/find.d.ts +2 -2
  77. lodash/findIndex.d.ts +2 -2
  78. lodash/findKey.d.ts +2 -2
  79. lodash/findLast.d.ts +2 -2
  80. lodash/findLastIndex.d.ts +2 -2
  81. lodash/findLastKey.d.ts +2 -2
  82. lodash/first.d.ts +2 -2
  83. lodash/flatMap.d.ts +2 -2
  84. lodash/flatMapDeep.d.ts +2 -2
  85. lodash/flatMapDepth.d.ts +2 -2
  86. lodash/flatten.d.ts +2 -2
  87. lodash/flattenDeep.d.ts +2 -2
  88. lodash/flattenDepth.d.ts +2 -2
  89. lodash/flip.d.ts +2 -2
  90. lodash/floor.d.ts +2 -2
  91. lodash/flow.d.ts +2 -2
  92. lodash/flowRight.d.ts +2 -2
  93. lodash/forEach.d.ts +2 -2
  94. lodash/forEachRight.d.ts +2 -2
  95. lodash/forIn.d.ts +2 -2
  96. lodash/forInRight.d.ts +2 -2
  97. lodash/forOwn.d.ts +2 -2
  98. lodash/forOwnRight.d.ts +2 -2
  99. lodash/fp/F.d.ts +2 -2
  100. lodash/fp/T.d.ts +2 -2
  101. lodash/fp/__.d.ts +3 -3
  102. lodash/fp/add.d.ts +2 -2
  103. lodash/fp/after.d.ts +2 -2
  104. lodash/fp/all.d.ts +2 -2
  105. lodash/fp/allPass.d.ts +2 -2
  106. lodash/fp/always.d.ts +2 -2
  107. lodash/fp/any.d.ts +2 -2
  108. lodash/fp/anyPass.d.ts +2 -2
  109. lodash/fp/apply.d.ts +2 -2
  110. lodash/fp/ary.d.ts +2 -2
  111. lodash/fp/assign.d.ts +2 -2
  112. lodash/fp/assignAll.d.ts +2 -2
  113. lodash/fp/assignAllWith.d.ts +2 -2
  114. lodash/fp/assignIn.d.ts +2 -2
  115. lodash/fp/assignInAll.d.ts +2 -2
  116. lodash/fp/assignInAllWith.d.ts +2 -2
  117. lodash/fp/assignInWith.d.ts +2 -2
  118. lodash/fp/assignWith.d.ts +2 -2
  119. lodash/fp/assoc.d.ts +2 -2
  120. lodash/fp/assocPath.d.ts +2 -2
  121. lodash/fp/at.d.ts +2 -2
  122. lodash/fp/attempt.d.ts +2 -2
  123. lodash/fp/before.d.ts +2 -2
  124. lodash/fp/bind.d.ts +2 -2
  125. lodash/fp/bindAll.d.ts +2 -2
  126. lodash/fp/bindKey.d.ts +2 -2
  127. lodash/fp/camelCase.d.ts +2 -2
  128. lodash/fp/capitalize.d.ts +2 -2
  129. lodash/fp/castArray.d.ts +2 -2
  130. lodash/fp/ceil.d.ts +2 -2
  131. lodash/fp/chunk.d.ts +2 -2
  132. lodash/fp/clamp.d.ts +2 -2
  133. lodash/fp/clone.d.ts +2 -2
  134. lodash/fp/cloneDeep.d.ts +2 -2
  135. lodash/fp/cloneDeepWith.d.ts +2 -2
  136. lodash/fp/cloneWith.d.ts +2 -2
  137. lodash/fp/compact.d.ts +2 -2
  138. lodash/fp/complement.d.ts +2 -2
  139. lodash/fp/compose.d.ts +2 -2
  140. lodash/fp/concat.d.ts +2 -2
  141. lodash/fp/cond.d.ts +2 -2
  142. lodash/fp/conforms.d.ts +2 -2
  143. lodash/fp/conformsTo.d.ts +2 -2
  144. lodash/fp/constant.d.ts +2 -2
  145. lodash/fp/contains.d.ts +2 -2
  146. lodash/fp/convert.d.ts +15 -15
  147. lodash/fp/countBy.d.ts +2 -2
  148. lodash/fp/create.d.ts +2 -2
  149. lodash/fp/curry.d.ts +2 -2
  150. lodash/fp/curryN.d.ts +2 -2
  151. lodash/fp/curryRight.d.ts +2 -2
  152. lodash/fp/curryRightN.d.ts +2 -2
  153. lodash/fp/debounce.d.ts +2 -2
  154. lodash/fp/deburr.d.ts +2 -2
  155. lodash/fp/defaultTo.d.ts +2 -2
  156. lodash/fp/defaults.d.ts +2 -2
  157. lodash/fp/defaultsAll.d.ts +2 -2
  158. lodash/fp/defaultsDeep.d.ts +2 -2
  159. lodash/fp/defaultsDeepAll.d.ts +2 -2
  160. lodash/fp/defer.d.ts +2 -2
  161. lodash/fp/delay.d.ts +2 -2
  162. lodash/fp/difference.d.ts +2 -2
  163. lodash/fp/differenceBy.d.ts +2 -2
  164. lodash/fp/differenceWith.d.ts +2 -2
  165. lodash/fp/dissoc.d.ts +2 -2
  166. lodash/fp/dissocPath.d.ts +2 -2
  167. lodash/fp/divide.d.ts +2 -2
  168. lodash/fp/drop.d.ts +2 -2
  169. lodash/fp/dropLast.d.ts +2 -2
  170. lodash/fp/dropLastWhile.d.ts +2 -2
  171. lodash/fp/dropRight.d.ts +2 -2
  172. lodash/fp/dropRightWhile.d.ts +2 -2
  173. lodash/fp/dropWhile.d.ts +2 -2
  174. lodash/fp/each.d.ts +2 -2
  175. lodash/fp/eachRight.d.ts +2 -2
  176. lodash/fp/endsWith.d.ts +2 -2
  177. lodash/fp/entries.d.ts +2 -2
  178. lodash/fp/entriesIn.d.ts +2 -2
  179. lodash/fp/eq.d.ts +2 -2
  180. lodash/fp/equals.d.ts +2 -2
  181. lodash/fp/escape.d.ts +2 -2
  182. lodash/fp/escapeRegExp.d.ts +2 -2
  183. lodash/fp/every.d.ts +2 -2
  184. lodash/fp/extend.d.ts +2 -2
  185. lodash/fp/extendAll.d.ts +2 -2
  186. lodash/fp/extendAllWith.d.ts +2 -2
  187. lodash/fp/extendWith.d.ts +2 -2
  188. lodash/fp/fill.d.ts +2 -2
  189. lodash/fp/filter.d.ts +2 -2
  190. lodash/fp/find.d.ts +2 -2
  191. lodash/fp/findFrom.d.ts +2 -2
  192. lodash/fp/findIndex.d.ts +2 -2
  193. lodash/fp/findIndexFrom.d.ts +2 -2
  194. lodash/fp/findKey.d.ts +2 -2
  195. lodash/fp/findLast.d.ts +2 -2
  196. lodash/fp/findLastFrom.d.ts +2 -2
  197. lodash/fp/findLastIndex.d.ts +2 -2
  198. lodash/fp/findLastIndexFrom.d.ts +2 -2
  199. lodash/fp/findLastKey.d.ts +2 -2
  200. lodash/fp/first.d.ts +2 -2
  201. lodash/fp/flatMap.d.ts +2 -2
  202. lodash/fp/flatMapDeep.d.ts +2 -2
  203. lodash/fp/flatMapDepth.d.ts +2 -2
  204. lodash/fp/flatten.d.ts +2 -2
  205. lodash/fp/flattenDeep.d.ts +2 -2
  206. lodash/fp/flattenDepth.d.ts +2 -2
  207. lodash/fp/flip.d.ts +2 -2
  208. lodash/fp/floor.d.ts +2 -2
  209. lodash/fp/flow.d.ts +2 -2
  210. lodash/fp/flowRight.d.ts +2 -2
  211. lodash/fp/forEach.d.ts +2 -2
  212. lodash/fp/forEachRight.d.ts +2 -2
  213. lodash/fp/forIn.d.ts +2 -2
  214. lodash/fp/forInRight.d.ts +2 -2
  215. lodash/fp/forOwn.d.ts +2 -2
  216. lodash/fp/forOwnRight.d.ts +2 -2
  217. lodash/fp/fromPairs.d.ts +2 -2
  218. lodash/fp/functions.d.ts +2 -2
  219. lodash/fp/functionsIn.d.ts +2 -2
  220. lodash/fp/get.d.ts +2 -2
  221. lodash/fp/getOr.d.ts +2 -2
  222. lodash/fp/groupBy.d.ts +2 -2
  223. lodash/fp/gt.d.ts +2 -2
  224. lodash/fp/gte.d.ts +2 -2
  225. lodash/fp/has.d.ts +2 -2
  226. lodash/fp/hasIn.d.ts +2 -2
  227. lodash/fp/head.d.ts +2 -2
  228. lodash/fp/identical.d.ts +2 -2
  229. lodash/fp/identity.d.ts +2 -2
  230. lodash/fp/inRange.d.ts +2 -2
  231. lodash/fp/includes.d.ts +2 -2
  232. lodash/fp/includesFrom.d.ts +2 -2
  233. lodash/fp/indexBy.d.ts +2 -2
  234. lodash/fp/indexOf.d.ts +2 -2
  235. lodash/fp/indexOfFrom.d.ts +2 -2
  236. lodash/fp/init.d.ts +2 -2
  237. lodash/fp/initial.d.ts +2 -2
  238. lodash/fp/intersection.d.ts +2 -2
  239. lodash/fp/intersectionBy.d.ts +2 -2
  240. lodash/fp/intersectionWith.d.ts +2 -2
  241. lodash/fp/invert.d.ts +2 -2
  242. lodash/fp/invertBy.d.ts +2 -2
  243. lodash/fp/invertObj.d.ts +2 -2
  244. lodash/fp/invoke.d.ts +2 -2
  245. lodash/fp/invokeArgs.d.ts +2 -2
  246. lodash/fp/invokeArgsMap.d.ts +2 -2
  247. lodash/fp/invokeMap.d.ts +2 -2
  248. lodash/fp/isArguments.d.ts +2 -2
  249. lodash/fp/isArray.d.ts +2 -2
  250. lodash/fp/isArrayBuffer.d.ts +2 -2
  251. lodash/fp/isArrayLike.d.ts +2 -2
  252. lodash/fp/isArrayLikeObject.d.ts +2 -2
  253. lodash/fp/isBoolean.d.ts +2 -2
  254. lodash/fp/isBuffer.d.ts +2 -2
  255. lodash/fp/isDate.d.ts +2 -2
  256. lodash/fp/isElement.d.ts +2 -2
  257. lodash/fp/isEmpty.d.ts +2 -2
  258. lodash/fp/isEqual.d.ts +2 -2
  259. lodash/fp/isEqualWith.d.ts +2 -2
  260. lodash/fp/isError.d.ts +2 -2
  261. lodash/fp/isFinite.d.ts +2 -2
  262. lodash/fp/isFunction.d.ts +2 -2
  263. lodash/fp/isInteger.d.ts +2 -2
  264. lodash/fp/isLength.d.ts +2 -2
  265. lodash/fp/isMap.d.ts +2 -2
  266. lodash/fp/isMatch.d.ts +2 -2
  267. lodash/fp/isMatchWith.d.ts +2 -2
  268. lodash/fp/isNaN.d.ts +2 -2
  269. lodash/fp/isNative.d.ts +2 -2
  270. lodash/fp/isNil.d.ts +2 -2
  271. lodash/fp/isNull.d.ts +2 -2
  272. lodash/fp/isNumber.d.ts +2 -2
  273. lodash/fp/isObject.d.ts +2 -2
  274. lodash/fp/isObjectLike.d.ts +2 -2
  275. lodash/fp/isPlainObject.d.ts +2 -2
  276. lodash/fp/isRegExp.d.ts +2 -2
  277. lodash/fp/isSafeInteger.d.ts +2 -2
  278. lodash/fp/isSet.d.ts +2 -2
  279. lodash/fp/isString.d.ts +2 -2
  280. lodash/fp/isSymbol.d.ts +2 -2
  281. lodash/fp/isTypedArray.d.ts +2 -2
  282. lodash/fp/isUndefined.d.ts +2 -2
  283. lodash/fp/isWeakMap.d.ts +2 -2
  284. lodash/fp/isWeakSet.d.ts +2 -2
  285. lodash/fp/iteratee.d.ts +2 -2
  286. lodash/fp/join.d.ts +2 -2
  287. lodash/fp/juxt.d.ts +2 -2
  288. lodash/fp/kebabCase.d.ts +2 -2
  289. lodash/fp/keyBy.d.ts +2 -2
  290. lodash/fp/keys.d.ts +2 -2
  291. lodash/fp/keysIn.d.ts +2 -2
  292. lodash/fp/last.d.ts +2 -2
  293. lodash/fp/lastIndexOf.d.ts +2 -2
  294. lodash/fp/lastIndexOfFrom.d.ts +2 -2
  295. lodash/fp/lowerCase.d.ts +2 -2
  296. lodash/fp/lowerFirst.d.ts +2 -2
  297. lodash/fp/lt.d.ts +2 -2
  298. lodash/fp/lte.d.ts +2 -2
  299. lodash/fp/map.d.ts +2 -2
  300. lodash/fp/mapKeys.d.ts +2 -2
  301. lodash/fp/mapValues.d.ts +2 -2
  302. lodash/fp/matches.d.ts +2 -2
  303. lodash/fp/matchesProperty.d.ts +2 -2
  304. lodash/fp/max.d.ts +2 -2
  305. lodash/fp/maxBy.d.ts +2 -2
  306. lodash/fp/mean.d.ts +2 -2
  307. lodash/fp/meanBy.d.ts +2 -2
  308. lodash/fp/memoize.d.ts +2 -2
  309. lodash/fp/merge.d.ts +2 -2
  310. lodash/fp/mergeAll.d.ts +2 -2
  311. lodash/fp/mergeAllWith.d.ts +2 -2
  312. lodash/fp/mergeWith.d.ts +2 -2
  313. lodash/fp/method.d.ts +2 -2
  314. lodash/fp/methodOf.d.ts +2 -2
  315. lodash/fp/min.d.ts +2 -2
  316. lodash/fp/minBy.d.ts +2 -2
  317. lodash/fp/multiply.d.ts +2 -2
  318. lodash/fp/nAry.d.ts +2 -2
  319. lodash/fp/negate.d.ts +2 -2
  320. lodash/fp/noConflict.d.ts +2 -2
  321. lodash/fp/noop.d.ts +2 -2
  322. lodash/fp/now.d.ts +2 -2
  323. lodash/fp/nth.d.ts +2 -2
  324. lodash/fp/nthArg.d.ts +2 -2
  325. lodash/fp/omit.d.ts +2 -2
  326. lodash/fp/omitAll.d.ts +2 -2
  327. lodash/fp/omitBy.d.ts +2 -2
  328. lodash/fp/once.d.ts +2 -2
  329. lodash/fp/orderBy.d.ts +2 -2
  330. lodash/fp/over.d.ts +2 -2
  331. lodash/fp/overArgs.d.ts +2 -2
  332. lodash/fp/overEvery.d.ts +2 -2
  333. lodash/fp/overSome.d.ts +2 -2
  334. lodash/fp/pad.d.ts +2 -2
  335. lodash/fp/padChars.d.ts +2 -2
  336. lodash/fp/padCharsEnd.d.ts +2 -2
  337. lodash/fp/padCharsStart.d.ts +2 -2
  338. lodash/fp/padEnd.d.ts +2 -2
  339. lodash/fp/padStart.d.ts +2 -2
  340. lodash/fp/parseInt.d.ts +2 -2
  341. lodash/fp/partial.d.ts +2 -2
  342. lodash/fp/partialRight.d.ts +2 -2
  343. lodash/fp/partition.d.ts +2 -2
  344. lodash/fp/path.d.ts +2 -2
  345. lodash/fp/pathEq.d.ts +2 -2
  346. lodash/fp/pathOr.d.ts +2 -2
  347. lodash/fp/paths.d.ts +2 -2
  348. lodash/fp/pick.d.ts +2 -2
  349. lodash/fp/pickAll.d.ts +2 -2
  350. lodash/fp/pickBy.d.ts +2 -2
  351. lodash/fp/pipe.d.ts +2 -2
  352. lodash/fp/placeholder.d.ts +3 -3
  353. lodash/fp/pluck.d.ts +2 -2
  354. lodash/fp/prop.d.ts +2 -2
  355. lodash/fp/propEq.d.ts +2 -2
  356. lodash/fp/propOr.d.ts +2 -2
  357. lodash/fp/property.d.ts +2 -2
  358. lodash/fp/propertyOf.d.ts +2 -2
  359. lodash/fp/props.d.ts +2 -2
  360. lodash/fp/pull.d.ts +2 -2
  361. lodash/fp/pullAll.d.ts +2 -2
  362. lodash/fp/pullAllBy.d.ts +2 -2
  363. lodash/fp/pullAllWith.d.ts +2 -2
  364. lodash/fp/pullAt.d.ts +2 -2
  365. lodash/fp/random.d.ts +2 -2
  366. lodash/fp/range.d.ts +2 -2
  367. lodash/fp/rangeRight.d.ts +2 -2
  368. lodash/fp/rangeStep.d.ts +2 -2
  369. lodash/fp/rangeStepRight.d.ts +2 -2
  370. lodash/fp/rearg.d.ts +2 -2
  371. lodash/fp/reduce.d.ts +2 -2
  372. lodash/fp/reduceRight.d.ts +2 -2
  373. lodash/fp/reject.d.ts +2 -2
  374. lodash/fp/remove.d.ts +2 -2
  375. lodash/fp/repeat.d.ts +2 -2
  376. lodash/fp/replace.d.ts +2 -2
  377. lodash/fp/rest.d.ts +2 -2
  378. lodash/fp/restFrom.d.ts +2 -2
  379. lodash/fp/result.d.ts +2 -2
  380. lodash/fp/reverse.d.ts +2 -2
  381. lodash/fp/round.d.ts +2 -2
  382. lodash/fp/runInContext.d.ts +2 -2
  383. lodash/fp/sample.d.ts +2 -2
  384. lodash/fp/sampleSize.d.ts +2 -2
  385. lodash/fp/set.d.ts +2 -2
  386. lodash/fp/setWith.d.ts +2 -2
  387. lodash/fp/shuffle.d.ts +2 -2
  388. lodash/fp/size.d.ts +2 -2
  389. lodash/fp/slice.d.ts +2 -2
  390. lodash/fp/snakeCase.d.ts +2 -2
  391. lodash/fp/some.d.ts +2 -2
  392. lodash/fp/sortBy.d.ts +2 -2
  393. lodash/fp/sortedIndex.d.ts +2 -2
  394. lodash/fp/sortedIndexBy.d.ts +2 -2
  395. lodash/fp/sortedIndexOf.d.ts +2 -2
  396. lodash/fp/sortedLastIndex.d.ts +2 -2
  397. lodash/fp/sortedLastIndexBy.d.ts +2 -2
  398. lodash/fp/sortedLastIndexOf.d.ts +2 -2
  399. lodash/fp/sortedUniq.d.ts +2 -2
  400. lodash/fp/sortedUniqBy.d.ts +2 -2
  401. lodash/fp/split.d.ts +2 -2
  402. lodash/fp/spread.d.ts +2 -2
  403. lodash/fp/spreadFrom.d.ts +2 -2
  404. lodash/fp/startCase.d.ts +2 -2
  405. lodash/fp/startsWith.d.ts +2 -2
  406. lodash/fp/stubArray.d.ts +2 -2
  407. lodash/fp/stubFalse.d.ts +2 -2
  408. lodash/fp/stubObject.d.ts +2 -2
  409. lodash/fp/stubString.d.ts +2 -2
  410. lodash/fp/stubTrue.d.ts +2 -2
  411. lodash/fp/subtract.d.ts +2 -2
  412. lodash/fp/sum.d.ts +2 -2
  413. lodash/fp/sumBy.d.ts +2 -2
  414. lodash/fp/symmetricDifference.d.ts +2 -2
  415. lodash/fp/symmetricDifferenceBy.d.ts +2 -2
  416. lodash/fp/symmetricDifferenceWith.d.ts +2 -2
  417. lodash/fp/tail.d.ts +2 -2
  418. lodash/fp/take.d.ts +2 -2
  419. lodash/fp/takeLast.d.ts +2 -2
  420. lodash/fp/takeLastWhile.d.ts +2 -2
  421. lodash/fp/takeRight.d.ts +2 -2
  422. lodash/fp/takeRightWhile.d.ts +2 -2
  423. lodash/fp/takeWhile.d.ts +2 -2
  424. lodash/fp/tap.d.ts +2 -2
  425. lodash/fp/template.d.ts +2 -2
  426. lodash/fp/throttle.d.ts +2 -2
  427. lodash/fp/thru.d.ts +2 -2
  428. lodash/fp/times.d.ts +2 -2
  429. lodash/fp/toArray.d.ts +2 -2
  430. lodash/fp/toFinite.d.ts +2 -2
  431. lodash/fp/toInteger.d.ts +2 -2
  432. lodash/fp/toLength.d.ts +2 -2
  433. lodash/fp/toLower.d.ts +2 -2
  434. lodash/fp/toNumber.d.ts +2 -2
  435. lodash/fp/toPairs.d.ts +2 -2
  436. lodash/fp/toPairsIn.d.ts +2 -2
  437. lodash/fp/toPath.d.ts +2 -2
  438. lodash/fp/toPlainObject.d.ts +2 -2
  439. lodash/fp/toSafeInteger.d.ts +2 -2
  440. lodash/fp/toString.d.ts +2 -2
  441. lodash/fp/toUpper.d.ts +2 -2
  442. lodash/fp/transform.d.ts +2 -2
  443. lodash/fp/trim.d.ts +2 -2
  444. lodash/fp/trimChars.d.ts +2 -2
  445. lodash/fp/trimCharsEnd.d.ts +2 -2
  446. lodash/fp/trimCharsStart.d.ts +2 -2
  447. lodash/fp/trimEnd.d.ts +2 -2
  448. lodash/fp/trimStart.d.ts +2 -2
  449. lodash/fp/truncate.d.ts +2 -2
  450. lodash/fp/unapply.d.ts +2 -2
  451. lodash/fp/unary.d.ts +2 -2
  452. lodash/fp/unescape.d.ts +2 -2
  453. lodash/fp/union.d.ts +2 -2
  454. lodash/fp/unionBy.d.ts +2 -2
  455. lodash/fp/unionWith.d.ts +2 -2
  456. lodash/fp/uniq.d.ts +2 -2
  457. lodash/fp/uniqBy.d.ts +2 -2
  458. lodash/fp/uniqWith.d.ts +2 -2
  459. lodash/fp/uniqueId.d.ts +2 -2
  460. lodash/fp/unnest.d.ts +2 -2
  461. lodash/fp/unset.d.ts +2 -2
  462. lodash/fp/unzip.d.ts +2 -2
  463. lodash/fp/unzipWith.d.ts +2 -2
  464. lodash/fp/update.d.ts +2 -2
  465. lodash/fp/updateWith.d.ts +2 -2
  466. lodash/fp/upperCase.d.ts +2 -2
  467. lodash/fp/upperFirst.d.ts +2 -2
  468. lodash/fp/useWith.d.ts +2 -2
  469. lodash/fp/values.d.ts +2 -2
  470. lodash/fp/valuesIn.d.ts +2 -2
  471. lodash/fp/where.d.ts +2 -2
  472. lodash/fp/whereEq.d.ts +2 -2
  473. lodash/fp/without.d.ts +2 -2
  474. lodash/fp/words.d.ts +2 -2
  475. lodash/fp/wrap.d.ts +2 -2
  476. lodash/fp/xor.d.ts +2 -2
  477. lodash/fp/xorBy.d.ts +2 -2
  478. lodash/fp/xorWith.d.ts +2 -2
  479. lodash/fp/zip.d.ts +2 -2
  480. lodash/fp/zipAll.d.ts +2 -2
  481. lodash/fp/zipObj.d.ts +2 -2
  482. lodash/fp/zipObject.d.ts +2 -2
  483. lodash/fp/zipObjectDeep.d.ts +2 -2
  484. lodash/fp/zipWith.d.ts +2 -2
  485. lodash/fp.d.ts +4765 -4488
  486. lodash/fromPairs.d.ts +2 -2
  487. lodash/functions.d.ts +2 -2
  488. lodash/functionsIn.d.ts +2 -2
  489. lodash/get.d.ts +2 -2
  490. lodash/groupBy.d.ts +2 -2
  491. lodash/gt.d.ts +2 -2
  492. lodash/gte.d.ts +2 -2
  493. lodash/has.d.ts +2 -2
  494. lodash/hasIn.d.ts +2 -2
  495. lodash/head.d.ts +2 -2
  496. lodash/identity.d.ts +2 -2
  497. lodash/inRange.d.ts +2 -2
  498. lodash/includes.d.ts +2 -2
  499. lodash/index.d.ts +47 -47
  500. lodash/indexOf.d.ts +2 -2
  501. lodash/initial.d.ts +2 -2
  502. lodash/intersection.d.ts +2 -2
  503. lodash/intersectionBy.d.ts +2 -2
  504. lodash/intersectionWith.d.ts +2 -2
  505. lodash/invert.d.ts +2 -2
  506. lodash/invertBy.d.ts +2 -2
  507. lodash/invoke.d.ts +2 -2
  508. lodash/invokeMap.d.ts +2 -2
  509. lodash/isArguments.d.ts +2 -2
  510. lodash/isArray.d.ts +2 -2
  511. lodash/isArrayBuffer.d.ts +2 -2
  512. lodash/isArrayLike.d.ts +2 -2
  513. lodash/isArrayLikeObject.d.ts +2 -2
  514. lodash/isBoolean.d.ts +2 -2
  515. lodash/isBuffer.d.ts +2 -2
  516. lodash/isDate.d.ts +2 -2
  517. lodash/isElement.d.ts +2 -2
  518. lodash/isEmpty.d.ts +2 -2
  519. lodash/isEqual.d.ts +2 -2
  520. lodash/isEqualWith.d.ts +2 -2
  521. lodash/isError.d.ts +2 -2
  522. lodash/isFinite.d.ts +2 -2
  523. lodash/isFunction.d.ts +2 -2
  524. lodash/isInteger.d.ts +2 -2
  525. lodash/isLength.d.ts +2 -2
  526. lodash/isMap.d.ts +2 -2
  527. lodash/isMatch.d.ts +2 -2
  528. lodash/isMatchWith.d.ts +2 -2
  529. lodash/isNaN.d.ts +2 -2
  530. lodash/isNative.d.ts +2 -2
  531. lodash/isNil.d.ts +2 -2
  532. lodash/isNull.d.ts +2 -2
  533. lodash/isNumber.d.ts +2 -2
  534. lodash/isObject.d.ts +2 -2
  535. lodash/isObjectLike.d.ts +2 -2
  536. lodash/isPlainObject.d.ts +2 -2
  537. lodash/isRegExp.d.ts +2 -2
  538. lodash/isSafeInteger.d.ts +2 -2
  539. lodash/isSet.d.ts +2 -2
  540. lodash/isString.d.ts +2 -2
  541. lodash/isSymbol.d.ts +2 -2
  542. lodash/isTypedArray.d.ts +2 -2
  543. lodash/isUndefined.d.ts +2 -2
  544. lodash/isWeakMap.d.ts +2 -2
  545. lodash/isWeakSet.d.ts +2 -2
  546. lodash/iteratee.d.ts +2 -2
  547. lodash/join.d.ts +2 -2
  548. lodash/kebabCase.d.ts +2 -2
  549. lodash/keyBy.d.ts +2 -2
  550. lodash/keys.d.ts +2 -2
  551. lodash/keysIn.d.ts +2 -2
  552. lodash/last.d.ts +2 -2
  553. lodash/lastIndexOf.d.ts +2 -2
  554. lodash/lowerCase.d.ts +2 -2
  555. lodash/lowerFirst.d.ts +2 -2
  556. lodash/lt.d.ts +2 -2
  557. lodash/lte.d.ts +2 -2
  558. lodash/map.d.ts +2 -2
  559. lodash/mapKeys.d.ts +2 -2
  560. lodash/mapValues.d.ts +2 -2
  561. lodash/matches.d.ts +2 -2
  562. lodash/matchesProperty.d.ts +2 -2
  563. lodash/max.d.ts +2 -2
  564. lodash/maxBy.d.ts +2 -2
  565. lodash/mean.d.ts +2 -2
  566. lodash/meanBy.d.ts +2 -2
  567. lodash/memoize.d.ts +2 -2
  568. lodash/merge.d.ts +2 -2
  569. lodash/mergeWith.d.ts +2 -2
  570. lodash/method.d.ts +2 -2
  571. lodash/methodOf.d.ts +2 -2
  572. lodash/min.d.ts +2 -2
  573. lodash/minBy.d.ts +2 -2
  574. lodash/mixin.d.ts +2 -2
  575. lodash/negate.d.ts +2 -2
  576. lodash/noConflict.d.ts +2 -2
  577. lodash/noop.d.ts +2 -2
  578. lodash/now.d.ts +2 -2
  579. lodash/nth.d.ts +2 -2
  580. lodash/nthArg.d.ts +2 -2
  581. lodash/omit.d.ts +2 -2
  582. lodash/omitBy.d.ts +2 -2
  583. lodash/once.d.ts +2 -2
  584. lodash/orderBy.d.ts +2 -2
  585. lodash/over.d.ts +2 -2
  586. lodash/overArgs.d.ts +2 -2
  587. lodash/overEvery.d.ts +2 -2
  588. lodash/overSome.d.ts +2 -2
  589. lodash/package.json +3 -3
  590. lodash/pad.d.ts +2 -2
  591. lodash/padEnd.d.ts +2 -2
  592. lodash/padStart.d.ts +2 -2
  593. lodash/parseInt.d.ts +2 -2
  594. lodash/partial.d.ts +2 -2
  595. lodash/partialRight.d.ts +2 -2
  596. lodash/partition.d.ts +2 -2
  597. lodash/pick.d.ts +2 -2
  598. lodash/pickBy.d.ts +2 -2
  599. lodash/property.d.ts +2 -2
  600. lodash/propertyOf.d.ts +2 -2
  601. lodash/pull.d.ts +2 -2
  602. lodash/pullAll.d.ts +2 -2
  603. lodash/pullAllBy.d.ts +2 -2
  604. lodash/pullAllWith.d.ts +2 -2
  605. lodash/pullAt.d.ts +2 -2
  606. lodash/random.d.ts +2 -2
  607. lodash/range.d.ts +2 -2
  608. lodash/rangeRight.d.ts +2 -2
  609. lodash/rearg.d.ts +2 -2
  610. lodash/reduce.d.ts +2 -2
  611. lodash/reduceRight.d.ts +2 -2
  612. lodash/reject.d.ts +2 -2
  613. lodash/remove.d.ts +2 -2
  614. lodash/repeat.d.ts +2 -2
  615. lodash/replace.d.ts +2 -2
  616. lodash/rest.d.ts +2 -2
  617. lodash/result.d.ts +2 -2
  618. lodash/reverse.d.ts +2 -2
  619. lodash/round.d.ts +2 -2
  620. lodash/runInContext.d.ts +2 -2
  621. lodash/sample.d.ts +2 -2
  622. lodash/sampleSize.d.ts +2 -2
  623. lodash/set.d.ts +2 -2
  624. lodash/setWith.d.ts +2 -2
  625. lodash/shuffle.d.ts +2 -2
  626. lodash/size.d.ts +2 -2
  627. lodash/slice.d.ts +2 -2
  628. lodash/snakeCase.d.ts +2 -2
  629. lodash/some.d.ts +2 -2
  630. lodash/sortBy.d.ts +2 -2
  631. lodash/sortedIndex.d.ts +2 -2
  632. lodash/sortedIndexBy.d.ts +2 -2
  633. lodash/sortedIndexOf.d.ts +2 -2
  634. lodash/sortedLastIndex.d.ts +2 -2
  635. lodash/sortedLastIndexBy.d.ts +2 -2
  636. lodash/sortedLastIndexOf.d.ts +2 -2
  637. lodash/sortedUniq.d.ts +2 -2
  638. lodash/sortedUniqBy.d.ts +2 -2
  639. lodash/split.d.ts +2 -2
  640. lodash/spread.d.ts +2 -2
  641. lodash/startCase.d.ts +2 -2
  642. lodash/startsWith.d.ts +2 -2
  643. lodash/subtract.d.ts +2 -2
  644. lodash/sum.d.ts +2 -2
  645. lodash/sumBy.d.ts +2 -2
  646. lodash/tail.d.ts +2 -2
  647. lodash/take.d.ts +2 -2
  648. lodash/takeRight.d.ts +2 -2
  649. lodash/takeRightWhile.d.ts +2 -2
  650. lodash/takeWhile.d.ts +2 -2
  651. lodash/tap.d.ts +2 -2
  652. lodash/template.d.ts +2 -2
  653. lodash/throttle.d.ts +2 -2
  654. lodash/thru.d.ts +2 -2
  655. lodash/times.d.ts +2 -2
  656. lodash/toArray.d.ts +2 -2
  657. lodash/toFinite.d.ts +2 -2
  658. lodash/toInteger.d.ts +2 -2
  659. lodash/toLength.d.ts +2 -2
  660. lodash/toLower.d.ts +2 -2
  661. lodash/toNumber.d.ts +2 -2
  662. lodash/toPairs.d.ts +2 -2
  663. lodash/toPairsIn.d.ts +2 -2
  664. lodash/toPath.d.ts +2 -2
  665. lodash/toPlainObject.d.ts +2 -2
  666. lodash/toSafeInteger.d.ts +2 -2
  667. lodash/toString.d.ts +2 -2
  668. lodash/toUpper.d.ts +2 -2
  669. lodash/transform.d.ts +2 -2
  670. lodash/trim.d.ts +2 -2
  671. lodash/trimEnd.d.ts +2 -2
  672. lodash/trimStart.d.ts +2 -2
  673. lodash/truncate.d.ts +2 -2
  674. lodash/unary.d.ts +2 -2
  675. lodash/unescape.d.ts +2 -2
  676. lodash/union.d.ts +2 -2
  677. lodash/unionBy.d.ts +2 -2
  678. lodash/unionWith.d.ts +2 -2
  679. lodash/uniq.d.ts +2 -2
  680. lodash/uniqBy.d.ts +2 -2
  681. lodash/uniqWith.d.ts +2 -2
  682. lodash/uniqueId.d.ts +2 -2
  683. lodash/unset.d.ts +2 -2
  684. lodash/unzip.d.ts +2 -2
  685. lodash/unzipWith.d.ts +2 -2
  686. lodash/update.d.ts +2 -2
  687. lodash/updateWith.d.ts +2 -2
  688. lodash/upperCase.d.ts +2 -2
  689. lodash/upperFirst.d.ts +2 -2
  690. lodash/values.d.ts +2 -2
  691. lodash/valuesIn.d.ts +2 -2
  692. lodash/without.d.ts +2 -2
  693. lodash/words.d.ts +2 -2
  694. lodash/wrap.d.ts +2 -2
  695. lodash/xor.d.ts +2 -2
  696. lodash/xorBy.d.ts +2 -2
  697. lodash/xorWith.d.ts +2 -2
  698. lodash/zip.d.ts +2 -2
  699. lodash/zipObject.d.ts +2 -2
  700. lodash/zipObjectDeep.d.ts +2 -2
  701. lodash/zipWith.d.ts +2 -2
lodash/common/lang.d.ts CHANGED
@@ -1,1936 +1,1936 @@
1
- import _ = require("../index");
2
- declare module "../index" {
3
- // castArray
4
-
5
- interface LoDashStatic {
6
- /**
7
- * Casts value as an array if it’s not one.
8
- *
9
- * @param value The value to inspect.
10
- * @return Returns the cast array.
11
- */
12
- castArray<T>(value?: Many<T>): T[];
13
- }
14
-
15
- interface LoDashImplicitWrapper<TValue> {
16
- /**
17
- * @see _.castArray
18
- */
19
- castArray<T>(this: LoDashImplicitWrapper<Many<T>>): LoDashImplicitWrapper<T[]>;
20
- }
21
-
22
- interface LoDashExplicitWrapper<TValue> {
23
- /**
24
- * @see _.castArray
25
- */
26
- castArray<T>(this: LoDashExplicitWrapper<Many<T>>): LoDashExplicitWrapper<T[]>;
27
- }
28
-
29
- // clone
30
-
31
- interface LoDashStatic {
32
- /**
33
- * Creates a shallow clone of value.
34
- *
35
- * Note: This method is loosely based on the structured clone algorithm and supports cloning arrays,
36
- * array buffers, booleans, date objects, maps, numbers, Object objects, regexes, sets, strings, symbols,
37
- * and typed arrays. The own enumerable properties of arguments objects are cloned as plain objects. An empty
38
- * object is returned for uncloneable values such as error objects, functions, DOM nodes, and WeakMaps.
39
- *
40
- * @param value The value to clone.
41
- * @return Returns the cloned value.
42
- */
43
- clone<T>(value: T): T;
44
- }
45
-
46
- interface LoDashImplicitWrapper<TValue> {
47
- /**
48
- * @see _.clone
49
- */
50
- clone(): TValue;
51
- }
52
-
53
- interface LoDashExplicitWrapper<TValue> {
54
- /**
55
- * @see _.clone
56
- */
57
- clone(): this;
58
- }
59
-
60
- // cloneDeep
61
-
62
- interface LoDashStatic {
63
- /**
64
- * This method is like _.clone except that it recursively clones value.
65
- *
66
- * @param value The value to recursively clone.
67
- * @return Returns the deep cloned value.
68
- */
69
- cloneDeep<T>(value: T): T;
70
- }
71
-
72
- interface LoDashImplicitWrapper<TValue> {
73
- /**
74
- * @see _.cloneDeep
75
- */
76
- cloneDeep(): TValue;
77
- }
78
-
79
- interface LoDashExplicitWrapper<TValue> {
80
- /**
81
- * @see _.cloneDeep
82
- */
83
- cloneDeep(): this;
84
- }
85
-
86
- // cloneDeepWith
87
-
88
- type CloneDeepWithCustomizer<TObject> = (value: any, key: number | string | undefined, object: TObject | undefined, stack: any) => any;
89
-
90
- interface LoDashStatic {
91
- /**
92
- * This method is like _.cloneWith except that it recursively clones value.
93
- *
94
- * @param value The value to recursively clone.
95
- * @param customizer The function to customize cloning.
96
- * @return Returns the deep cloned value.
97
- */
98
- cloneDeepWith<T>(
99
- value: T,
100
- customizer: CloneDeepWithCustomizer<T>
101
- ): any;
102
-
103
- /**
104
- * @see _.cloneDeepWith
105
- */
106
- cloneDeepWith<T>(value: T): T;
107
- }
108
-
109
- interface LoDashImplicitWrapper<TValue> {
110
- /**
111
- * @see _.cloneDeepWith
112
- */
113
- cloneDeepWith(
114
- customizer: CloneDeepWithCustomizer<TValue>
115
- ): any;
116
-
117
- /**
118
- * @see _.cloneDeepWith
119
- */
120
- cloneDeepWith(): TValue;
121
- }
122
-
123
- interface LoDashExplicitWrapper<TValue> {
124
- /**
125
- * @see _.cloneDeepWith
126
- */
127
- cloneDeepWith(
128
- customizer: CloneDeepWithCustomizer<TValue>
129
- ): LoDashExplicitWrapper<any>;
130
-
131
- /**
132
- * @see _.cloneDeepWith
133
- */
134
- cloneDeepWith(): this;
135
- }
136
-
137
- // cloneWith
138
-
139
- type CloneWithCustomizer<TValue, TResult> = (value: TValue, key: number | string | undefined, object: any, stack: any) => TResult;
140
-
141
- interface LoDashStatic {
142
- /**
143
- * This method is like _.clone except that it accepts customizer which is invoked to produce the cloned value.
144
- * If customizer returns undefined cloning is handled by the method instead.
145
- *
146
- * @param value The value to clone.
147
- * @param customizer The function to customize cloning.
148
- * @return Returns the cloned value.
149
- */
150
- cloneWith<T, TResult extends object | string | number | boolean | null>(
151
- value: T,
152
- customizer: CloneWithCustomizer<T, TResult>
153
- ): TResult;
154
-
155
- /**
156
- * @see _.cloneWith
157
- */
158
- cloneWith<T, TResult>(
159
- value: T,
160
- customizer: CloneWithCustomizer<T, TResult | undefined>
161
- ): TResult | T;
162
-
163
- /**
164
- * @see _.cloneWith
165
- */
166
- cloneWith<T>(value: T): T;
167
- }
168
-
169
- interface LoDashImplicitWrapper<TValue> {
170
- /**
171
- * @see _.cloneWith
172
- */
173
- cloneWith<TResult extends object | string | number | boolean | null>(
174
- customizer: CloneWithCustomizer<TValue, TResult>
175
- ): TResult;
176
-
177
- /**
178
- * @see _.cloneWith
179
- */
180
- cloneWith<TResult>(
181
- customizer: CloneWithCustomizer<TValue, TResult | undefined>
182
- ): TResult | TValue;
183
-
184
- /**
185
- * @see _.cloneWith
186
- */
187
- cloneWith(): TValue;
188
- }
189
-
190
- interface LoDashExplicitWrapper<TValue> {
191
- /**
192
- * @see _.cloneWith
193
- */
194
- cloneWith<TResult extends object | string | number | boolean | null>(
195
- customizer: CloneWithCustomizer<TValue, TResult>
196
- ): LoDashExplicitWrapper<TResult>;
197
-
198
- /**
199
- * @see _.cloneWith
200
- */
201
- cloneWith<TResult>(
202
- customizer: CloneWithCustomizer<TValue, TResult | undefined>
203
- ): LoDashExplicitWrapper<TResult | TValue>;
204
-
205
- /**
206
- * @see _.cloneWith
207
- */
208
- cloneWith(): this;
209
- }
210
-
211
- // conformsTo
212
-
213
- interface LoDashStatic {
214
- /**
215
- * Checks if object conforms to source by invoking the predicate properties of source with the
216
- * corresponding property values of object.
217
- *
218
- * Note: This method is equivalent to _.conforms when source is partially applied.
219
- */
220
- conformsTo<T>(object: T, source: ConformsPredicateObject<T>): boolean;
221
- }
222
-
223
- interface LoDashImplicitWrapper<TValue> {
224
- /**
225
- * @see _.conformsTo
226
- */
227
- conformsTo<T>(this: LoDashImplicitWrapper<T>, source: ConformsPredicateObject<T>): boolean;
228
- // Note: we can't use TValue here, because it generates a typescript error when strictFunctionTypes is enabled.
229
- }
230
-
231
- interface LoDashExplicitWrapper<TValue> {
232
- /**
233
- * @see _.conformsTo
234
- */
235
- conformsTo<T>(this: LoDashExplicitWrapper<T>, source: ConformsPredicateObject<T>): LoDashExplicitWrapper<boolean>;
236
- // Note: we can't use TValue here, because it generates a typescript error when strictFunctionTypes is enabled.
237
- }
238
-
239
- type CondPair<T, R> = [(val: T) => boolean, (val: T) => R];
240
-
241
- // eq
242
-
243
- interface LoDashStatic {
244
- /**
245
- * Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
246
- * comparison between two values to determine if they are equivalent.
247
- *
248
- * @category Lang
249
- * @param value The value to compare.
250
- * @param other The other value to compare.
251
- * @returns Returns `true` if the values are equivalent, else `false`.
252
- * @example
253
- *
254
- * var object = { 'user': 'fred' };
255
- * var other = { 'user': 'fred' };
256
- *
257
- * _.eq(object, object);
258
- * // => true
259
- *
260
- * _.eq(object, other);
261
- * // => false
262
- *
263
- * _.eq('a', 'a');
264
- * // => true
265
- *
266
- * _.eq('a', Object('a'));
267
- * // => false
268
- *
269
- * _.eq(NaN, NaN);
270
- * // => true
271
- */
272
- eq(
273
- value: any,
274
- other: any
275
- ): boolean;
276
- }
277
-
278
- interface LoDashImplicitWrapper<TValue> {
279
- /**
280
- * @see _.eq
281
- */
282
- eq(
283
- other: any
284
- ): boolean;
285
- }
286
-
287
- interface LoDashExplicitWrapper<TValue> {
288
- /**
289
- * @see _.eq
290
- */
291
- eq(
292
- other: any
293
- ): LoDashExplicitWrapper<boolean>;
294
- }
295
-
296
- // gt
297
-
298
- interface LoDashStatic {
299
- /**
300
- * Checks if value is greater than other.
301
- *
302
- * @param value The value to compare.
303
- * @param other The other value to compare.
304
- * @return Returns true if value is greater than other, else false.
305
- */
306
- gt(
307
- value: any,
308
- other: any
309
- ): boolean;
310
- }
311
-
312
- interface LoDashImplicitWrapper<TValue> {
313
- /**
314
- * @see _.gt
315
- */
316
- gt(other: any): boolean;
317
- }
318
-
319
- interface LoDashExplicitWrapper<TValue> {
320
- /**
321
- * @see _.gt
322
- */
323
- gt(other: any): LoDashExplicitWrapper<boolean>;
324
- }
325
-
326
- // gte
327
-
328
- interface LoDashStatic {
329
- /**
330
- * Checks if value is greater than or equal to other.
331
- *
332
- * @param value The value to compare.
333
- * @param other The other value to compare.
334
- * @return Returns true if value is greater than or equal to other, else false.
335
- */
336
- gte(
337
- value: any,
338
- other: any
339
- ): boolean;
340
- }
341
-
342
- interface LoDashImplicitWrapper<TValue> {
343
- /**
344
- * @see _.gte
345
- */
346
- gte(other: any): boolean;
347
- }
348
-
349
- interface LoDashExplicitWrapper<TValue> {
350
- /**
351
- * @see _.gte
352
- */
353
- gte(other: any): LoDashExplicitWrapper<boolean>;
354
- }
355
-
356
- // isArguments
357
-
358
- interface LoDashStatic {
359
- /**
360
- * Checks if value is classified as an arguments object.
361
- *
362
- * @param value The value to check.
363
- * @return Returns true if value is correctly classified, else false.
364
- */
365
- isArguments(value?: any): value is IArguments;
366
- }
367
-
368
- interface LoDashImplicitWrapper<TValue> {
369
- /**
370
- * @see _.isArguments
371
- */
372
- isArguments(): boolean;
373
- }
374
-
375
- interface LoDashExplicitWrapper<TValue> {
376
- /**
377
- * @see _.isArguments
378
- */
379
- isArguments(): LoDashExplicitWrapper<boolean>;
380
- }
381
-
382
- // isArray
383
-
384
- interface LoDashStatic {
385
- /**
386
- * Checks if value is classified as an Array object.
387
- * @param value The value to check.
388
- *
389
- * @return Returns true if value is correctly classified, else false.
390
- */
391
- isArray(value?: any): value is any[];
392
-
393
- /**
394
- * DEPRECATED
395
- */
396
- isArray<T>(value?: any): value is any[];
397
- }
398
-
399
- interface LoDashImplicitWrapper<TValue> {
400
- /**
401
- * @see _.isArray
402
- */
403
- isArray(): boolean;
404
- }
405
-
406
- interface LoDashExplicitWrapper<TValue> {
407
- /**
408
- * @see _.isArray
409
- */
410
- isArray(): LoDashExplicitWrapper<boolean>;
411
- }
412
-
413
- // isArrayBuffer
414
-
415
- interface LoDashStatic {
416
- /**
417
- * Checks if value is classified as an ArrayBuffer object.
418
- *
419
- * @param value The value to check.
420
- * @return Returns true if value is correctly classified, else false.
421
- */
422
- isArrayBuffer(value?: any): value is ArrayBuffer;
423
- }
424
-
425
- interface LoDashImplicitWrapper<TValue> {
426
- /**
427
- * @see _.isArrayBuffer
428
- */
429
- isArrayBuffer(): boolean;
430
- }
431
-
432
- interface LoDashExplicitWrapper<TValue> {
433
- /**
434
- * @see _.isArrayBuffer
435
- */
436
- isArrayBuffer(): LoDashExplicitWrapper<boolean>;
437
- }
438
-
439
- // isArrayLike
440
-
441
- interface LoDashStatic {
442
- /**
443
- * Checks if `value` is array-like. A value is considered array-like if it's
444
- * not a function and has a `value.length` that's an integer greater than or
445
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
446
- *
447
- * @category Lang
448
- * @param value The value to check.
449
- * @returns Returns `true` if `value` is array-like, else `false`.
450
- * @example
451
- *
452
- * _.isArrayLike([1, 2, 3]);
453
- * // => true
454
- *
455
- * _.isArrayLike(document.body.children);
456
- * // => true
457
- *
458
- * _.isArrayLike('abc');
459
- * // => true
460
- *
461
- * _.isArrayLike(_.noop);
462
- * // => false
463
- */
464
- isArrayLike<T>(value: T & string & number): boolean; // should only match if T = any
465
-
466
- /**
467
- * @see _.isArrayLike
468
- */
469
- isArrayLike(value: ((...args: any[]) => any) | null | undefined): value is never;
470
-
471
- /**
472
- * @see _.isArrayLike
473
- */
474
- isArrayLike(value: any): value is { length: number };
475
- }
476
-
477
- interface LoDashImplicitWrapper<TValue> {
478
- /**
479
- * @see _.isArrayLike
480
- */
481
- isArrayLike(): boolean;
482
- }
483
-
484
- interface LoDashExplicitWrapper<TValue> {
485
- /**
486
- * @see _.isArrayLike
487
- */
488
- isArrayLike(): LoDashExplicitWrapper<boolean>;
489
- }
490
-
491
- // isArrayLikeObject
492
-
493
- interface LoDashStatic {
494
- /**
495
- * This method is like `_.isArrayLike` except that it also checks if `value`
496
- * is an object.
497
- *
498
- * @category Lang
499
- * @param value The value to check.
500
- * @returns Returns `true` if `value` is an array-like object, else `false`.
501
- * @example
502
- *
503
- * _.isArrayLikeObject([1, 2, 3]);
504
- * // => true
505
- *
506
- * _.isArrayLikeObject(document.body.children);
507
- * // => true
508
- *
509
- * _.isArrayLikeObject('abc');
510
- * // => false
511
- *
512
- * _.isArrayLikeObject(_.noop);
513
- * // => false
514
- */
515
- isArrayLikeObject<T>(value: T & string & number): boolean; // should only match if T = any
516
-
517
- /**
518
- * @see _.isArrayLike
519
- */
520
- // tslint:disable-next-line:ban-types (type guard doesn't seem to work correctly without the Function type)
521
- isArrayLikeObject(value: ((...args: any[]) => any) | Function | string | boolean | number | null | undefined): value is never;
522
-
523
- /**
524
- * @see _.isArrayLike
525
- */
526
- // tslint:disable-next-line:ban-types (type guard doesn't seem to work correctly without the Function type)
527
- isArrayLikeObject<T extends object>(value: T | ((...args: any[]) => any) | Function | string | boolean | number | null | undefined): value is T & { length: number };
528
- }
529
-
530
- interface LoDashImplicitWrapper<TValue> {
531
- /**
532
- * @see _.isArrayLikeObject
533
- */
534
- isArrayLikeObject(): boolean;
535
- }
536
-
537
- interface LoDashExplicitWrapper<TValue> {
538
- /**
539
- * @see _.isArrayLikeObject
540
- */
541
- isArrayLikeObject(): LoDashExplicitWrapper<boolean>;
542
- }
543
-
544
- // isBoolean
545
-
546
- interface LoDashStatic {
547
- /**
548
- * Checks if value is classified as a boolean primitive or object.
549
- *
550
- * @param value The value to check.
551
- * @return Returns true if value is correctly classified, else false.
552
- */
553
- isBoolean(value?: any): value is boolean;
554
- }
555
-
556
- interface LoDashImplicitWrapper<TValue> {
557
- /**
558
- * @see _.isBoolean
559
- */
560
- isBoolean(): boolean;
561
- }
562
-
563
- interface LoDashExplicitWrapper<TValue> {
564
- /**
565
- * @see _.isBoolean
566
- */
567
- isBoolean(): LoDashExplicitWrapper<boolean>;
568
- }
569
-
570
- // isBuffer
571
-
572
- interface LoDashStatic {
573
- /**
574
- * Checks if value is a buffer.
575
- *
576
- * @param value The value to check.
577
- * @return Returns true if value is a buffer, else false.
578
- */
579
- isBuffer(value?: any): boolean;
580
- }
581
-
582
- interface LoDashImplicitWrapper<TValue> {
583
- /**
584
- * @see _.isBuffer
585
- */
586
- isBuffer(): boolean;
587
- }
588
-
589
- interface LoDashExplicitWrapper<TValue> {
590
- /**
591
- * @see _.isBuffer
592
- */
593
- isBuffer(): LoDashExplicitWrapper<boolean>;
594
- }
595
-
596
- // isDate
597
-
598
- interface LoDashStatic {
599
- /**
600
- * Checks if value is classified as a Date object.
601
- * @param value The value to check.
602
- *
603
- * @return Returns true if value is correctly classified, else false.
604
- */
605
- isDate(value?: any): value is Date;
606
- }
607
-
608
- interface LoDashImplicitWrapper<TValue> {
609
- /**
610
- * @see _.isDate
611
- */
612
- isDate(): boolean;
613
- }
614
-
615
- interface LoDashExplicitWrapper<TValue> {
616
- /**
617
- * @see _.isDate
618
- */
619
- isDate(): LoDashExplicitWrapper<boolean>;
620
- }
621
-
622
- // isElement
623
-
624
- interface LoDashStatic {
625
- /**
626
- * Checks if value is a DOM element.
627
- *
628
- * @param value The value to check.
629
- * @return Returns true if value is a DOM element, else false.
630
- */
631
- isElement(value?: any): boolean;
632
- }
633
-
634
- interface LoDashImplicitWrapper<TValue> {
635
- /**
636
- * @see _.isElement
637
- */
638
- isElement(): boolean;
639
- }
640
-
641
- interface LoDashExplicitWrapper<TValue> {
642
- /**
643
- * @see _.isElement
644
- */
645
- isElement(): LoDashExplicitWrapper<boolean>;
646
- }
647
-
648
- // isEmpty
649
-
650
- interface LoDashStatic {
651
- /**
652
- * Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string, or
653
- * jQuery-like collection with a length greater than 0 or an object with own enumerable properties.
654
- *
655
- * @param value The value to inspect.
656
- * @return Returns true if value is empty, else false.
657
- */
658
- isEmpty(value?: any): boolean;
659
- }
660
-
661
- interface LoDashImplicitWrapper<TValue> {
662
- /**
663
- * @see _.isEmpty
664
- */
665
- isEmpty(): boolean;
666
- }
667
-
668
- interface LoDashExplicitWrapper<TValue> {
669
- /**
670
- * @see _.isEmpty
671
- */
672
- isEmpty(): LoDashExplicitWrapper<boolean>;
673
- }
674
-
675
- // isEqual
676
-
677
- interface LoDashStatic {
678
- /**
679
- * Performs a deep comparison between two values to determine if they are
680
- * equivalent.
681
- *
682
- * **Note:** This method supports comparing arrays, array buffers, booleans,
683
- * date objects, error objects, maps, numbers, `Object` objects, regexes,
684
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
685
- * by their own, not inherited, enumerable properties. Functions and DOM
686
- * nodes are **not** supported.
687
- *
688
- * @category Lang
689
- * @param value The value to compare.
690
- * @param other The other value to compare.
691
- * @returns Returns `true` if the values are equivalent, else `false`.
692
- * @example
693
- *
694
- * var object = { 'user': 'fred' };
695
- * var other = { 'user': 'fred' };
696
- *
697
- * _.isEqual(object, other);
698
- * // => true
699
- *
700
- * object === other;
701
- * // => false
702
- */
703
- isEqual(
704
- value: any,
705
- other: any
706
- ): boolean;
707
- }
708
-
709
- interface LoDashImplicitWrapper<TValue> {
710
- /**
711
- * @see _.isEqual
712
- */
713
- isEqual(
714
- other: any
715
- ): boolean;
716
- }
717
-
718
- interface LoDashExplicitWrapper<TValue> {
719
- /**
720
- * @see _.isEqual
721
- */
722
- isEqual(
723
- other: any
724
- ): LoDashExplicitWrapper<boolean>;
725
- }
726
-
727
- // isEqualWith
728
-
729
- type IsEqualCustomizer = (value: any, other: any, indexOrKey: PropertyName | undefined, parent: any, otherParent: any, stack: any) => boolean|undefined;
730
-
731
- interface LoDashStatic {
732
- /**
733
- * This method is like `_.isEqual` except that it accepts `customizer` which is
734
- * invoked to compare values. If `customizer` returns `undefined` comparisons are
735
- * handled by the method instead. The `customizer` is invoked with up to seven arguments:
736
- * (objValue, othValue [, index|key, object, other, stack]).
737
- *
738
- * @category Lang
739
- * @param value The value to compare.
740
- * @param other The other value to compare.
741
- * @param [customizer] The function to customize comparisons.
742
- * @returns Returns `true` if the values are equivalent, else `false`.
743
- * @example
744
- *
745
- * function isGreeting(value) {
746
- * return /^h(?:i|ello)$/.test(value);
747
- * }
748
- *
749
- * function customizer(objValue, othValue) {
750
- * if (isGreeting(objValue) && isGreeting(othValue)) {
751
- * return true;
752
- * }
753
- * }
754
- *
755
- * var array = ['hello', 'goodbye'];
756
- * var other = ['hi', 'goodbye'];
757
- *
758
- * _.isEqualWith(array, other, customizer);
759
- * // => true
760
- */
761
- isEqualWith(
762
- value: any,
763
- other: any,
764
- customizer?: IsEqualCustomizer
765
- ): boolean;
766
- }
767
-
768
- interface LoDashImplicitWrapper<TValue> {
769
- /**
770
- * @see _.isEqualWith
771
- */
772
- isEqualWith(
773
- other: any,
774
- customizer?: IsEqualCustomizer
775
- ): boolean;
776
- }
777
-
778
- interface LoDashExplicitWrapper<TValue> {
779
- /**
780
- * @see _.isEqualWith
781
- */
782
- isEqualWith(
783
- other: any,
784
- customizer?: IsEqualCustomizer
785
- ): LoDashExplicitWrapper<boolean>;
786
- }
787
-
788
- // isError
789
-
790
- interface LoDashStatic {
791
- /**
792
- * Checks if value is an Error, EvalError, RangeError, ReferenceError, SyntaxError, TypeError, or URIError
793
- * object.
794
- *
795
- * @param value The value to check.
796
- * @return Returns true if value is an error object, else false.
797
- */
798
- isError(value: any): value is Error;
799
- }
800
-
801
- interface LoDashImplicitWrapper<TValue> {
802
- /**
803
- * @see _.isError
804
- */
805
- isError(): boolean;
806
- }
807
-
808
- interface LoDashExplicitWrapper<TValue> {
809
- /**
810
- * @see _.isError
811
- */
812
- isError(): LoDashExplicitWrapper<boolean>;
813
- }
814
-
815
- // isFinite
816
-
817
- interface LoDashStatic {
818
- /**
819
- * Checks if value is a finite primitive number.
820
- *
821
- * Note: This method is based on Number.isFinite.
822
- *
823
- * @param value The value to check.
824
- * @return Returns true if value is a finite number, else false.
825
- */
826
- isFinite(value?: any): boolean;
827
- }
828
-
829
- interface LoDashImplicitWrapper<TValue> {
830
- /**
831
- * @see _.isFinite
832
- */
833
- isFinite(): boolean;
834
- }
835
-
836
- interface LoDashExplicitWrapper<TValue> {
837
- /**
838
- * @see _.isFinite
839
- */
840
- isFinite(): LoDashExplicitWrapper<boolean>;
841
- }
842
-
843
- // isFunction
844
-
845
- interface LoDashStatic {
846
- /**
847
- * Checks if value is a callable function.
848
- *
849
- * @param value The value to check.
850
- * @return Returns true if value is correctly classified, else false.
851
- */
852
- isFunction(value: any): value is (...args: any[]) => any;
853
- }
854
-
855
- interface LoDashImplicitWrapper<TValue> {
856
- /**
857
- * @see _.isFunction
858
- */
859
- isFunction(): boolean;
860
- }
861
-
862
- interface LoDashExplicitWrapper<TValue> {
863
- /**
864
- * @see _.isFunction
865
- */
866
- isFunction(): LoDashExplicitWrapper<boolean>;
867
- }
868
-
869
- // isInteger
870
-
871
- interface LoDashStatic {
872
- /**
873
- * Checks if `value` is an integer.
874
- *
875
- * **Note:** This method is based on [`Number.isInteger`](https://mdn.io/Number/isInteger).
876
- *
877
- * @category Lang
878
- * @param value The value to check.
879
- * @returns Returns `true` if `value` is an integer, else `false`.
880
- * @example
881
- *
882
- * _.isInteger(3);
883
- * // => true
884
- *
885
- * _.isInteger(Number.MIN_VALUE);
886
- * // => false
887
- *
888
- * _.isInteger(Infinity);
889
- * // => false
890
- *
891
- * _.isInteger('3');
892
- * // => false
893
- */
894
- isInteger(value?: any): boolean;
895
- }
896
-
897
- interface LoDashImplicitWrapper<TValue> {
898
- /**
899
- * @see _.isInteger
900
- */
901
- isInteger(): boolean;
902
- }
903
-
904
- interface LoDashExplicitWrapper<TValue> {
905
- /**
906
- * @see _.isInteger
907
- */
908
- isInteger(): LoDashExplicitWrapper<boolean>;
909
- }
910
-
911
- // isLength
912
-
913
- interface LoDashStatic {
914
- /**
915
- * Checks if `value` is a valid array-like length.
916
- *
917
- * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
918
- *
919
- * @category Lang
920
- * @param value The value to check.
921
- * @returns Returns `true` if `value` is a valid length, else `false`.
922
- * @example
923
- *
924
- * _.isLength(3);
925
- * // => true
926
- *
927
- * _.isLength(Number.MIN_VALUE);
928
- * // => false
929
- *
930
- * _.isLength(Infinity);
931
- * // => false
932
- *
933
- * _.isLength('3');
934
- * // => false
935
- */
936
- isLength(value?: any): boolean;
937
- }
938
-
939
- interface LoDashImplicitWrapper<TValue> {
940
- /**
941
- * @see _.isLength
942
- */
943
- isLength(): boolean;
944
- }
945
-
946
- interface LoDashExplicitWrapper<TValue> {
947
- /**
948
- * @see _.isLength
949
- */
950
- isLength(): LoDashExplicitWrapper<boolean>;
951
- }
952
-
953
- // isMap
954
-
955
- interface LoDashStatic {
956
- /**
957
- * Checks if value is classified as a Map object.
958
- *
959
- * @param value The value to check.
960
- * @returns Returns true if value is correctly classified, else false.
961
- */
962
- isMap(value?: any): value is Map<any, any>;
963
- }
964
-
965
- interface LoDashImplicitWrapper<TValue> {
966
- /**
967
- * @see _.isMap
968
- */
969
- isMap(): boolean;
970
- }
971
-
972
- interface LoDashExplicitWrapper<TValue> {
973
- /**
974
- * @see _.isMap
975
- */
976
- isMap(): LoDashExplicitWrapper<boolean>;
977
- }
978
-
979
- // isMatch
980
-
981
- type isMatchCustomizer = (value: any, other: any, indexOrKey?: PropertyName) => boolean;
982
-
983
- interface LoDashStatic {
984
- /**
985
- * Performs a deep comparison between `object` and `source` to determine if
986
- * `object` contains equivalent property values.
987
- *
988
- * **Note:** This method supports comparing the same values as `_.isEqual`.
989
- *
990
- * @category Lang
991
- * @param object The object to inspect.
992
- * @param source The object of property values to match.
993
- * @returns Returns `true` if `object` is a match, else `false`.
994
- * @example
995
- *
996
- * var object = { 'user': 'fred', 'age': 40 };
997
- *
998
- * _.isMatch(object, { 'age': 40 });
999
- * // => true
1000
- *
1001
- * _.isMatch(object, { 'age': 36 });
1002
- * // => false
1003
- */
1004
- isMatch(object: object, source: object): boolean;
1005
- }
1006
-
1007
- interface LoDashImplicitWrapper<TValue> {
1008
- /**
1009
- * @see _.isMatch
1010
- */
1011
- isMatch(source: object): boolean;
1012
- }
1013
-
1014
- interface LoDashExplicitWrapper<TValue> {
1015
- /**
1016
- * @see _.isMatch
1017
- */
1018
- isMatch(source: object): LoDashExplicitWrapper<boolean>;
1019
- }
1020
-
1021
- // isMatchWith
1022
-
1023
- type isMatchWithCustomizer = (value: any, other: any, indexOrKey: PropertyName) => boolean;
1024
-
1025
- interface LoDashStatic {
1026
- /**
1027
- * This method is like `_.isMatch` except that it accepts `customizer` which
1028
- * is invoked to compare values. If `customizer` returns `undefined` comparisons
1029
- * are handled by the method instead. The `customizer` is invoked with three
1030
- * arguments: (objValue, srcValue, index|key, object, source).
1031
- *
1032
- * @category Lang
1033
- * @param object The object to inspect.
1034
- * @param source The object of property values to match.
1035
- * @param [customizer] The function to customize comparisons.
1036
- * @returns Returns `true` if `object` is a match, else `false`.
1037
- * @example
1038
- *
1039
- * function isGreeting(value) {
1040
- * return /^h(?:i|ello)$/.test(value);
1041
- * }
1042
- *
1043
- * function customizer(objValue, srcValue) {
1044
- * if (isGreeting(objValue) && isGreeting(srcValue)) {
1045
- * return true;
1046
- * }
1047
- * }
1048
- *
1049
- * var object = { 'greeting': 'hello' };
1050
- * var source = { 'greeting': 'hi' };
1051
- *
1052
- * _.isMatchWith(object, source, customizer);
1053
- * // => true
1054
- */
1055
- isMatchWith(object: object, source: object, customizer: isMatchWithCustomizer): boolean;
1056
- }
1057
-
1058
- interface LoDashImplicitWrapper<TValue> {
1059
- /**
1060
- * @see _.isMatchWith
1061
- */
1062
- isMatchWith(source: object, customizer: isMatchWithCustomizer): boolean;
1063
- }
1064
-
1065
- interface LoDashExplicitWrapper<TValue> {
1066
- /**
1067
- * @see _.isMatchWith
1068
- */
1069
- isMatchWith(source: object, customizer: isMatchWithCustomizer): LoDashExplicitWrapper<boolean>;
1070
- }
1071
-
1072
- // isNaN
1073
-
1074
- interface LoDashStatic {
1075
- /**
1076
- * Checks if value is NaN.
1077
- *
1078
- * Note: This method is not the same as isNaN which returns true for undefined and other non-numeric values.
1079
- *
1080
- * @param value The value to check.
1081
- * @return Returns true if value is NaN, else false.
1082
- */
1083
- isNaN(value?: any): boolean;
1084
- }
1085
-
1086
- interface LoDashImplicitWrapper<TValue> {
1087
- /**
1088
- * @see _.isNaN
1089
- */
1090
- isNaN(): boolean;
1091
- }
1092
-
1093
- interface LoDashExplicitWrapper<TValue> {
1094
- /**
1095
- * @see _.isNaN
1096
- */
1097
- isNaN(): LoDashExplicitWrapper<boolean>;
1098
- }
1099
-
1100
- // isNative
1101
-
1102
- interface LoDashStatic {
1103
- /**
1104
- * Checks if value is a native function.
1105
- * @param value The value to check.
1106
- *
1107
- * @retrun Returns true if value is a native function, else false.
1108
- */
1109
- isNative(value: any): value is (...args: any[]) => any;
1110
- }
1111
-
1112
- interface LoDashImplicitWrapper<TValue> {
1113
- /**
1114
- * see _.isNative
1115
- */
1116
- isNative(): boolean;
1117
- }
1118
-
1119
- interface LoDashExplicitWrapper<TValue> {
1120
- /**
1121
- * see _.isNative
1122
- */
1123
- isNative(): LoDashExplicitWrapper<boolean>;
1124
- }
1125
-
1126
- // isNil
1127
-
1128
- interface LoDashStatic {
1129
- /**
1130
- * Checks if `value` is `null` or `undefined`.
1131
- *
1132
- * @category Lang
1133
- * @param value The value to check.
1134
- * @returns Returns `true` if `value` is nullish, else `false`.
1135
- * @example
1136
- *
1137
- * _.isNil(null);
1138
- * // => true
1139
- *
1140
- * _.isNil(void 0);
1141
- * // => true
1142
- *
1143
- * _.isNil(NaN);
1144
- * // => false
1145
- */
1146
- isNil(value: any): value is null | undefined;
1147
- }
1148
-
1149
- interface LoDashImplicitWrapper<TValue> {
1150
- /**
1151
- * see _.isNil
1152
- */
1153
- isNil(): boolean;
1154
- }
1155
-
1156
- interface LoDashExplicitWrapper<TValue> {
1157
- /**
1158
- * see _.isNil
1159
- */
1160
- isNil(): LoDashExplicitWrapper<boolean>;
1161
- }
1162
-
1163
- // isNull
1164
-
1165
- interface LoDashStatic {
1166
- /**
1167
- * Checks if value is null.
1168
- *
1169
- * @param value The value to check.
1170
- * @return Returns true if value is null, else false.
1171
- */
1172
- isNull(value: any): value is null;
1173
- }
1174
-
1175
- interface LoDashImplicitWrapper<TValue> {
1176
- /**
1177
- * see _.isNull
1178
- */
1179
- isNull(): boolean;
1180
- }
1181
-
1182
- interface LoDashExplicitWrapper<TValue> {
1183
- /**
1184
- * see _.isNull
1185
- */
1186
- isNull(): LoDashExplicitWrapper<boolean>;
1187
- }
1188
-
1189
- // isNumber
1190
-
1191
- interface LoDashStatic {
1192
- /**
1193
- * Checks if value is classified as a Number primitive or object.
1194
- *
1195
- * Note: To exclude Infinity, -Infinity, and NaN, which are classified as numbers, use the _.isFinite method.
1196
- *
1197
- * @param value The value to check.
1198
- * @return Returns true if value is correctly classified, else false.
1199
- */
1200
- isNumber(value?: any): value is number;
1201
- }
1202
-
1203
- interface LoDashImplicitWrapper<TValue> {
1204
- /**
1205
- * see _.isNumber
1206
- */
1207
- isNumber(): boolean;
1208
- }
1209
-
1210
- interface LoDashExplicitWrapper<TValue> {
1211
- /**
1212
- * see _.isNumber
1213
- */
1214
- isNumber(): LoDashExplicitWrapper<boolean>;
1215
- }
1216
-
1217
- // isObject
1218
-
1219
- interface LoDashStatic {
1220
- /**
1221
- * Checks if value is the language type of Object. (e.g. arrays, functions, objects, regexes, new Number(0),
1222
- * and new String(''))
1223
- *
1224
- * @param value The value to check.
1225
- * @return Returns true if value is an object, else false.
1226
- */
1227
- isObject(value?: any): boolean;
1228
- }
1229
-
1230
- interface LoDashImplicitWrapper<TValue> {
1231
- /**
1232
- * see _.isObject
1233
- */
1234
- isObject(): boolean;
1235
- }
1236
-
1237
- interface LoDashExplicitWrapper<TValue> {
1238
- /**
1239
- * see _.isObject
1240
- */
1241
- isObject(): LoDashExplicitWrapper<boolean>;
1242
- }
1243
-
1244
- // isObjectLike
1245
-
1246
- interface LoDashStatic {
1247
- /**
1248
- * Checks if `value` is object-like. A value is object-like if it's not `null`
1249
- * and has a `typeof` result of "object".
1250
- *
1251
- * @category Lang
1252
- * @param value The value to check.
1253
- * @returns Returns `true` if `value` is object-like, else `false`.
1254
- * @example
1255
- *
1256
- * _.isObjectLike({});
1257
- * // => true
1258
- *
1259
- * _.isObjectLike([1, 2, 3]);
1260
- * // => true
1261
- *
1262
- * _.isObjectLike(_.noop);
1263
- * // => false
1264
- *
1265
- * _.isObjectLike(null);
1266
- * // => false
1267
- */
1268
- isObjectLike(value?: any): boolean;
1269
- }
1270
-
1271
- interface LoDashImplicitWrapper<TValue> {
1272
- /**
1273
- * see _.isObjectLike
1274
- */
1275
- isObjectLike(): boolean;
1276
- }
1277
-
1278
- interface LoDashExplicitWrapper<TValue> {
1279
- /**
1280
- * see _.isObjectLike
1281
- */
1282
- isObjectLike(): LoDashExplicitWrapper<boolean>;
1283
- }
1284
-
1285
- // isPlainObject
1286
-
1287
- interface LoDashStatic {
1288
- /**
1289
- * Checks if value is a plain object, that is, an object created by the Object constructor or one with a
1290
- * [[Prototype]] of null.
1291
- *
1292
- * Note: This method assumes objects created by the Object constructor have no inherited enumerable properties.
1293
- *
1294
- * @param value The value to check.
1295
- * @return Returns true if value is a plain object, else false.
1296
- */
1297
- isPlainObject(value?: any): boolean;
1298
- }
1299
-
1300
- interface LoDashImplicitWrapper<TValue> {
1301
- /**
1302
- * see _.isPlainObject
1303
- */
1304
- isPlainObject(): boolean;
1305
- }
1306
-
1307
- interface LoDashExplicitWrapper<TValue> {
1308
- /**
1309
- * see _.isPlainObject
1310
- */
1311
- isPlainObject(): LoDashExplicitWrapper<boolean>;
1312
- }
1313
-
1314
- // isRegExp
1315
-
1316
- interface LoDashStatic {
1317
- /**
1318
- * Checks if value is classified as a RegExp object.
1319
- * @param value The value to check.
1320
- *
1321
- * @return Returns true if value is correctly classified, else false.
1322
- */
1323
- isRegExp(value?: any): value is RegExp;
1324
- }
1325
-
1326
- interface LoDashImplicitWrapper<TValue> {
1327
- /**
1328
- * see _.isRegExp
1329
- */
1330
- isRegExp(): boolean;
1331
- }
1332
-
1333
- interface LoDashExplicitWrapper<TValue> {
1334
- /**
1335
- * see _.isRegExp
1336
- */
1337
- isRegExp(): LoDashExplicitWrapper<boolean>;
1338
- }
1339
-
1340
- // isSafeInteger
1341
-
1342
- interface LoDashStatic {
1343
- /**
1344
- * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
1345
- * double precision number which isn't the result of a rounded unsafe integer.
1346
- *
1347
- * **Note:** This method is based on [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
1348
- *
1349
- * @category Lang
1350
- * @param value The value to check.
1351
- * @returns Returns `true` if `value` is a safe integer, else `false`.
1352
- * @example
1353
- *
1354
- * _.isSafeInteger(3);
1355
- * // => true
1356
- *
1357
- * _.isSafeInteger(Number.MIN_VALUE);
1358
- * // => false
1359
- *
1360
- * _.isSafeInteger(Infinity);
1361
- * // => false
1362
- *
1363
- * _.isSafeInteger('3');
1364
- * // => false
1365
- */
1366
- isSafeInteger(value: any): boolean;
1367
- }
1368
-
1369
- interface LoDashImplicitWrapper<TValue> {
1370
- /**
1371
- * see _.isSafeInteger
1372
- */
1373
- isSafeInteger(): boolean;
1374
- }
1375
-
1376
- interface LoDashExplicitWrapper<TValue> {
1377
- /**
1378
- * see _.isSafeInteger
1379
- */
1380
- isSafeInteger(): LoDashExplicitWrapper<boolean>;
1381
- }
1382
-
1383
- // isSet
1384
-
1385
- interface LoDashStatic {
1386
- /**
1387
- * Checks if value is classified as a Set object.
1388
- *
1389
- * @param value The value to check.
1390
- * @returns Returns true if value is correctly classified, else false.
1391
- */
1392
- isSet(value?: any): value is Set<any>;
1393
- }
1394
-
1395
- interface LoDashImplicitWrapper<TValue> {
1396
- /**
1397
- * @see _.isSet
1398
- */
1399
- isSet(): boolean;
1400
- }
1401
-
1402
- interface LoDashExplicitWrapper<TValue> {
1403
- /**
1404
- * @see _.isSet
1405
- */
1406
- isSet(): LoDashExplicitWrapper<boolean>;
1407
- }
1408
-
1409
- // isString
1410
-
1411
- interface LoDashStatic {
1412
- /**
1413
- * Checks if value is classified as a String primitive or object.
1414
- *
1415
- * @param value The value to check.
1416
- * @return Returns true if value is correctly classified, else false.
1417
- */
1418
- isString(value?: any): value is string;
1419
- }
1420
-
1421
- interface LoDashImplicitWrapper<TValue> {
1422
- /**
1423
- * see _.isString
1424
- */
1425
- isString(): boolean;
1426
- }
1427
-
1428
- interface LoDashExplicitWrapper<TValue> {
1429
- /**
1430
- * see _.isString
1431
- */
1432
- isString(): LoDashExplicitWrapper<boolean>;
1433
- }
1434
-
1435
- // isSymbol
1436
-
1437
- interface LoDashStatic {
1438
- /**
1439
- * Checks if `value` is classified as a `Symbol` primitive or object.
1440
- *
1441
- * @category Lang
1442
- * @param value The value to check.
1443
- * @returns Returns `true` if `value` is correctly classified, else `false`.
1444
- * @example
1445
- *
1446
- * _.isSymbol(Symbol.iterator);
1447
- * // => true
1448
- *
1449
- * _.isSymbol('abc');
1450
- * // => false
1451
- */
1452
- isSymbol(value: any): boolean;
1453
- }
1454
-
1455
- interface LoDashImplicitWrapper<TValue> {
1456
- /**
1457
- * see _.isSymbol
1458
- */
1459
- isSymbol(): boolean;
1460
- }
1461
-
1462
- interface LoDashExplicitWrapper<TValue> {
1463
- /**
1464
- * see _.isSymbol
1465
- */
1466
- isSymbol(): LoDashExplicitWrapper<boolean>;
1467
- }
1468
-
1469
- // isTypedArray
1470
-
1471
- interface LoDashStatic {
1472
- /**
1473
- * Checks if value is classified as a typed array.
1474
- *
1475
- * @param value The value to check.
1476
- * @return Returns true if value is correctly classified, else false.
1477
- */
1478
- isTypedArray(value: any): boolean;
1479
- }
1480
-
1481
- interface LoDashImplicitWrapper<TValue> {
1482
- /**
1483
- * see _.isTypedArray
1484
- */
1485
- isTypedArray(): boolean;
1486
- }
1487
-
1488
- interface LoDashExplicitWrapper<TValue> {
1489
- /**
1490
- * see _.isTypedArray
1491
- */
1492
- isTypedArray(): LoDashExplicitWrapper<boolean>;
1493
- }
1494
-
1495
- // isUndefined
1496
-
1497
- interface LoDashStatic {
1498
- /**
1499
- * Checks if value is undefined.
1500
- *
1501
- * @param value The value to check.
1502
- * @return Returns true if value is undefined, else false.
1503
- */
1504
- isUndefined(value: any): value is undefined;
1505
- }
1506
-
1507
- interface LoDashImplicitWrapper<TValue> {
1508
- /**
1509
- * see _.isUndefined
1510
- */
1511
- isUndefined(): boolean;
1512
- }
1513
-
1514
- interface LoDashExplicitWrapper<TValue> {
1515
- /**
1516
- * see _.isUndefined
1517
- */
1518
- isUndefined(): LoDashExplicitWrapper<boolean>;
1519
- }
1520
-
1521
- // isWeakMap
1522
-
1523
- interface LoDashStatic {
1524
- /**
1525
- * Checks if value is classified as a WeakMap object.
1526
- *
1527
- * @param value The value to check.
1528
- * @returns Returns true if value is correctly classified, else false.
1529
- */
1530
- isWeakMap(value?: any): value is WeakMap<object, any>;
1531
- }
1532
-
1533
- interface LoDashImplicitWrapper<TValue> {
1534
- /**
1535
- * @see _.isSet
1536
- */
1537
- isWeakMap(): boolean;
1538
- }
1539
-
1540
- interface LoDashExplicitWrapper<TValue> {
1541
- /**
1542
- * @see _.isSet
1543
- */
1544
- isWeakMap(): LoDashExplicitWrapper<boolean>;
1545
- }
1546
-
1547
- // isWeakSet
1548
-
1549
- interface LoDashStatic {
1550
- /**
1551
- * Checks if value is classified as a WeakSet object.
1552
- *
1553
- * @param value The value to check.
1554
- * @returns Returns true if value is correctly classified, else false.
1555
- */
1556
- isWeakSet(value?: any): value is WeakSet<object>;
1557
- }
1558
-
1559
- interface LoDashImplicitWrapper<TValue> {
1560
- /**
1561
- * @see _.isWeakSet
1562
- */
1563
- isWeakSet(): boolean;
1564
- }
1565
-
1566
- interface LoDashExplicitWrapper<TValue> {
1567
- /**
1568
- * @see _.isWeakSet
1569
- */
1570
- isWeakSet(): LoDashExplicitWrapper<boolean>;
1571
- }
1572
-
1573
- // lt
1574
-
1575
- interface LoDashStatic {
1576
- /**
1577
- * Checks if value is less than other.
1578
- *
1579
- * @param value The value to compare.
1580
- * @param other The other value to compare.
1581
- * @return Returns true if value is less than other, else false.
1582
- */
1583
- lt(
1584
- value: any,
1585
- other: any
1586
- ): boolean;
1587
- }
1588
-
1589
- interface LoDashImplicitWrapper<TValue> {
1590
- /**
1591
- * @see _.lt
1592
- */
1593
- lt(other: any): boolean;
1594
- }
1595
-
1596
- interface LoDashExplicitWrapper<TValue> {
1597
- /**
1598
- * @see _.lt
1599
- */
1600
- lt(other: any): LoDashExplicitWrapper<boolean>;
1601
- }
1602
-
1603
- // lte
1604
-
1605
- interface LoDashStatic {
1606
- /**
1607
- * Checks if value is less than or equal to other.
1608
- *
1609
- * @param value The value to compare.
1610
- * @param other The other value to compare.
1611
- * @return Returns true if value is less than or equal to other, else false.
1612
- */
1613
- lte(
1614
- value: any,
1615
- other: any
1616
- ): boolean;
1617
- }
1618
-
1619
- interface LoDashImplicitWrapper<TValue> {
1620
- /**
1621
- * @see _.lte
1622
- */
1623
- lte(other: any): boolean;
1624
- }
1625
-
1626
- interface LoDashExplicitWrapper<TValue> {
1627
- /**
1628
- * @see _.lte
1629
- */
1630
- lte(other: any): LoDashExplicitWrapper<boolean>;
1631
- }
1632
-
1633
- // toArray
1634
-
1635
- interface LoDashStatic {
1636
- /**
1637
- * Converts value to an array.
1638
- *
1639
- * @param value The value to convert.
1640
- * @return Returns the converted array.
1641
- */
1642
- toArray<T>(value: List<T> | Dictionary<T> | NumericDictionary<T> | null | undefined): T[];
1643
-
1644
- /**
1645
- * @see _.toArray
1646
- */
1647
- toArray<T>(value: T): Array<T[keyof T]>;
1648
-
1649
- /**
1650
- * @see _.toArray
1651
- */
1652
- toArray(): any[];
1653
- }
1654
-
1655
- interface LoDashImplicitWrapper<TValue> {
1656
- /**
1657
- * @see _.toArray
1658
- */
1659
- toArray<T>(this: LoDashImplicitWrapper<List<T> | Dictionary<T> | NumericDictionary<T> | null | undefined>): LoDashImplicitWrapper<T[]>;
1660
-
1661
- /**
1662
- * @see _.toArray
1663
- */
1664
- toArray<T extends object>(this: LoDashImplicitWrapper<T>): LoDashImplicitWrapper<Array<T[keyof T]>>;
1665
- }
1666
-
1667
- interface LoDashExplicitWrapper<TValue> {
1668
- /**
1669
- * @see _.toArray
1670
- */
1671
- toArray<T>(this: LoDashExplicitWrapper<List<T> | Dictionary<T> | NumericDictionary<T> | null | undefined>): LoDashExplicitWrapper<T[]>;
1672
-
1673
- /**
1674
- * @see _.toArray
1675
- */
1676
- toArray<T extends object>(this: LoDashImplicitWrapper<T>): LoDashExplicitWrapper<Array<T[keyof T]>>;
1677
- }
1678
-
1679
- // toFinite
1680
-
1681
- interface LoDashStatic {
1682
- /**
1683
- * Converts `value` to a finite number.
1684
- *
1685
- * @since 4.12.0
1686
- * @category Lang
1687
- * @param value The value to convert.
1688
- * @returns Returns the converted number.
1689
- * @example
1690
- *
1691
- * _.toFinite(3.2);
1692
- * // => 3.2
1693
- *
1694
- * _.toFinite(Number.MIN_VALUE);
1695
- * // => 5e-324
1696
- *
1697
- * _.toFinite(Infinity);
1698
- * // => 1.7976931348623157e+308
1699
- *
1700
- * _.toFinite('3.2');
1701
- * // => 3.2
1702
- */
1703
- toFinite(value: any): number;
1704
- }
1705
-
1706
- interface LoDashImplicitWrapper<TValue> {
1707
- /**
1708
- * @see _.toFinite
1709
- */
1710
- toFinite(): number;
1711
- }
1712
-
1713
- interface LoDashExplicitWrapper<TValue> {
1714
- /**
1715
- * @see _.toFinite
1716
- */
1717
- toFinite(): LoDashExplicitWrapper<number>;
1718
- }
1719
-
1720
- // toInteger
1721
-
1722
- interface LoDashStatic {
1723
- /**
1724
- * Converts `value` to an integer.
1725
- *
1726
- * **Note:** This function is loosely based on [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
1727
- *
1728
- * @category Lang
1729
- * @param value The value to convert.
1730
- * @returns Returns the converted integer.
1731
- * @example
1732
- *
1733
- * _.toInteger(3);
1734
- * // => 3
1735
- *
1736
- * _.toInteger(Number.MIN_VALUE);
1737
- * // => 0
1738
- *
1739
- * _.toInteger(Infinity);
1740
- * // => 1.7976931348623157e+308
1741
- *
1742
- * _.toInteger('3');
1743
- * // => 3
1744
- */
1745
- toInteger(value: any): number;
1746
- }
1747
-
1748
- interface LoDashImplicitWrapper<TValue> {
1749
- /**
1750
- * @see _.toInteger
1751
- */
1752
- toInteger(): number;
1753
- }
1754
-
1755
- interface LoDashExplicitWrapper<TValue> {
1756
- /**
1757
- * @see _.toInteger
1758
- */
1759
- toInteger(): LoDashExplicitWrapper<number>;
1760
- }
1761
-
1762
- // toLength
1763
-
1764
- interface LoDashStatic {
1765
- /**
1766
- * Converts `value` to an integer suitable for use as the length of an
1767
- * array-like object.
1768
- *
1769
- * **Note:** This method is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
1770
- *
1771
- * @category Lang
1772
- * @param value The value to convert.
1773
- * @return Returns the converted integer.
1774
- * @example
1775
- *
1776
- * _.toLength(3);
1777
- * // => 3
1778
- *
1779
- * _.toLength(Number.MIN_VALUE);
1780
- * // => 0
1781
- *
1782
- * _.toLength(Infinity);
1783
- * // => 4294967295
1784
- *
1785
- * _.toLength('3');
1786
- * // => 3
1787
- */
1788
- toLength(value: any): number;
1789
- }
1790
-
1791
- interface LoDashImplicitWrapper<TValue> {
1792
- /**
1793
- * @see _.toLength
1794
- */
1795
- toLength(): number;
1796
- }
1797
-
1798
- interface LoDashExplicitWrapper<TValue> {
1799
- /**
1800
- * @see _.toLength
1801
- */
1802
- toLength(): LoDashExplicitWrapper<number>;
1803
- }
1804
-
1805
- // toNumber
1806
-
1807
- interface LoDashStatic {
1808
- /**
1809
- * Converts `value` to a number.
1810
- *
1811
- * @category Lang
1812
- * @param value The value to process.
1813
- * @returns Returns the number.
1814
- * @example
1815
- *
1816
- * _.toNumber(3);
1817
- * // => 3
1818
- *
1819
- * _.toNumber(Number.MIN_VALUE);
1820
- * // => 5e-324
1821
- *
1822
- * _.toNumber(Infinity);
1823
- * // => Infinity
1824
- *
1825
- * _.toNumber('3');
1826
- * // => 3
1827
- */
1828
- toNumber(value: any): number;
1829
- }
1830
-
1831
- interface LoDashImplicitWrapper<TValue> {
1832
- /**
1833
- * @see _.toNumber
1834
- */
1835
- toNumber(): number;
1836
- }
1837
-
1838
- interface LoDashExplicitWrapper<TValue> {
1839
- /**
1840
- * @see _.toNumber
1841
- */
1842
- toNumber(): LoDashExplicitWrapper<number>;
1843
- }
1844
-
1845
- // toPlainObject
1846
-
1847
- interface LoDashStatic {
1848
- /**
1849
- * Converts value to a plain object flattening inherited enumerable properties of value to own properties
1850
- * of the plain object.
1851
- *
1852
- * @param value The value to convert.
1853
- * @return Returns the converted plain object.
1854
- */
1855
- toPlainObject(value?: any): any;
1856
- }
1857
-
1858
- interface LoDashImplicitWrapper<TValue> {
1859
- /**
1860
- * @see _.toPlainObject
1861
- */
1862
- toPlainObject(): LoDashImplicitWrapper<any>;
1863
- }
1864
-
1865
- interface LoDashExplicitWrapper<TValue> {
1866
- /**
1867
- * @see _.toPlainObject
1868
- */
1869
- toPlainObject(): LoDashExplicitWrapper<any>;
1870
- }
1871
-
1872
- // toSafeInteger
1873
-
1874
- interface LoDashStatic {
1875
- /**
1876
- * Converts `value` to a safe integer. A safe integer can be compared and
1877
- * represented correctly.
1878
- *
1879
- * @category Lang
1880
- * @param value The value to convert.
1881
- * @returns Returns the converted integer.
1882
- * @example
1883
- *
1884
- * _.toSafeInteger(3);
1885
- * // => 3
1886
- *
1887
- * _.toSafeInteger(Number.MIN_VALUE);
1888
- * // => 0
1889
- *
1890
- * _.toSafeInteger(Infinity);
1891
- * // => 9007199254740991
1892
- *
1893
- * _.toSafeInteger('3');
1894
- * // => 3
1895
- */
1896
- toSafeInteger(value: any): number;
1897
- }
1898
-
1899
- interface LoDashImplicitWrapper<TValue> {
1900
- /**
1901
- * @see _.toSafeInteger
1902
- */
1903
- toSafeInteger(): number;
1904
- }
1905
-
1906
- interface LoDashExplicitWrapper<TValue> {
1907
- /**
1908
- * @see _.toSafeInteger
1909
- */
1910
- toSafeInteger(): LoDashExplicitWrapper<number>;
1911
- }
1912
-
1913
- // toString
1914
-
1915
- interface LoDashStatic {
1916
- /**
1917
- * Converts `value` to a string if it's not one. An empty string is returned
1918
- * for `null` and `undefined` values. The sign of `-0` is preserved.
1919
- *
1920
- * @category Lang
1921
- * @param value The value to process.
1922
- * @returns Returns the string.
1923
- * @example
1924
- *
1925
- * _.toString(null);
1926
- * // => ''
1927
- *
1928
- * _.toString(-0);
1929
- * // => '-0'
1930
- *
1931
- * _.toString([1, 2, 3]);
1932
- * // => '1,2,3'
1933
- */
1934
- toString(value: any): string;
1935
- }
1936
- }
1
+ import _ = require("../index");
2
+ declare module "../index" {
3
+ // castArray
4
+
5
+ interface LoDashStatic {
6
+ /**
7
+ * Casts value as an array if it’s not one.
8
+ *
9
+ * @param value The value to inspect.
10
+ * @return Returns the cast array.
11
+ */
12
+ castArray<T>(value?: Many<T>): T[];
13
+ }
14
+
15
+ interface LoDashImplicitWrapper<TValue> {
16
+ /**
17
+ * @see _.castArray
18
+ */
19
+ castArray<T>(this: LoDashImplicitWrapper<Many<T>>): LoDashImplicitWrapper<T[]>;
20
+ }
21
+
22
+ interface LoDashExplicitWrapper<TValue> {
23
+ /**
24
+ * @see _.castArray
25
+ */
26
+ castArray<T>(this: LoDashExplicitWrapper<Many<T>>): LoDashExplicitWrapper<T[]>;
27
+ }
28
+
29
+ // clone
30
+
31
+ interface LoDashStatic {
32
+ /**
33
+ * Creates a shallow clone of value.
34
+ *
35
+ * Note: This method is loosely based on the structured clone algorithm and supports cloning arrays,
36
+ * array buffers, booleans, date objects, maps, numbers, Object objects, regexes, sets, strings, symbols,
37
+ * and typed arrays. The own enumerable properties of arguments objects are cloned as plain objects. An empty
38
+ * object is returned for uncloneable values such as error objects, functions, DOM nodes, and WeakMaps.
39
+ *
40
+ * @param value The value to clone.
41
+ * @return Returns the cloned value.
42
+ */
43
+ clone<T>(value: T): T;
44
+ }
45
+
46
+ interface LoDashImplicitWrapper<TValue> {
47
+ /**
48
+ * @see _.clone
49
+ */
50
+ clone(): TValue;
51
+ }
52
+
53
+ interface LoDashExplicitWrapper<TValue> {
54
+ /**
55
+ * @see _.clone
56
+ */
57
+ clone(): this;
58
+ }
59
+
60
+ // cloneDeep
61
+
62
+ interface LoDashStatic {
63
+ /**
64
+ * This method is like _.clone except that it recursively clones value.
65
+ *
66
+ * @param value The value to recursively clone.
67
+ * @return Returns the deep cloned value.
68
+ */
69
+ cloneDeep<T>(value: T): T;
70
+ }
71
+
72
+ interface LoDashImplicitWrapper<TValue> {
73
+ /**
74
+ * @see _.cloneDeep
75
+ */
76
+ cloneDeep(): TValue;
77
+ }
78
+
79
+ interface LoDashExplicitWrapper<TValue> {
80
+ /**
81
+ * @see _.cloneDeep
82
+ */
83
+ cloneDeep(): this;
84
+ }
85
+
86
+ // cloneDeepWith
87
+
88
+ type CloneDeepWithCustomizer<TObject> = (value: any, key: number | string | undefined, object: TObject | undefined, stack: any) => any;
89
+
90
+ interface LoDashStatic {
91
+ /**
92
+ * This method is like _.cloneWith except that it recursively clones value.
93
+ *
94
+ * @param value The value to recursively clone.
95
+ * @param customizer The function to customize cloning.
96
+ * @return Returns the deep cloned value.
97
+ */
98
+ cloneDeepWith<T>(
99
+ value: T,
100
+ customizer: CloneDeepWithCustomizer<T>
101
+ ): any;
102
+
103
+ /**
104
+ * @see _.cloneDeepWith
105
+ */
106
+ cloneDeepWith<T>(value: T): T;
107
+ }
108
+
109
+ interface LoDashImplicitWrapper<TValue> {
110
+ /**
111
+ * @see _.cloneDeepWith
112
+ */
113
+ cloneDeepWith(
114
+ customizer: CloneDeepWithCustomizer<TValue>
115
+ ): any;
116
+
117
+ /**
118
+ * @see _.cloneDeepWith
119
+ */
120
+ cloneDeepWith(): TValue;
121
+ }
122
+
123
+ interface LoDashExplicitWrapper<TValue> {
124
+ /**
125
+ * @see _.cloneDeepWith
126
+ */
127
+ cloneDeepWith(
128
+ customizer: CloneDeepWithCustomizer<TValue>
129
+ ): LoDashExplicitWrapper<any>;
130
+
131
+ /**
132
+ * @see _.cloneDeepWith
133
+ */
134
+ cloneDeepWith(): this;
135
+ }
136
+
137
+ // cloneWith
138
+
139
+ type CloneWithCustomizer<TValue, TResult> = (value: TValue, key: number | string | undefined, object: any, stack: any) => TResult;
140
+
141
+ interface LoDashStatic {
142
+ /**
143
+ * This method is like _.clone except that it accepts customizer which is invoked to produce the cloned value.
144
+ * If customizer returns undefined cloning is handled by the method instead.
145
+ *
146
+ * @param value The value to clone.
147
+ * @param customizer The function to customize cloning.
148
+ * @return Returns the cloned value.
149
+ */
150
+ cloneWith<T, TResult extends object | string | number | boolean | null>(
151
+ value: T,
152
+ customizer: CloneWithCustomizer<T, TResult>
153
+ ): TResult;
154
+
155
+ /**
156
+ * @see _.cloneWith
157
+ */
158
+ cloneWith<T, TResult>(
159
+ value: T,
160
+ customizer: CloneWithCustomizer<T, TResult | undefined>
161
+ ): TResult | T;
162
+
163
+ /**
164
+ * @see _.cloneWith
165
+ */
166
+ cloneWith<T>(value: T): T;
167
+ }
168
+
169
+ interface LoDashImplicitWrapper<TValue> {
170
+ /**
171
+ * @see _.cloneWith
172
+ */
173
+ cloneWith<TResult extends object | string | number | boolean | null>(
174
+ customizer: CloneWithCustomizer<TValue, TResult>
175
+ ): TResult;
176
+
177
+ /**
178
+ * @see _.cloneWith
179
+ */
180
+ cloneWith<TResult>(
181
+ customizer: CloneWithCustomizer<TValue, TResult | undefined>
182
+ ): TResult | TValue;
183
+
184
+ /**
185
+ * @see _.cloneWith
186
+ */
187
+ cloneWith(): TValue;
188
+ }
189
+
190
+ interface LoDashExplicitWrapper<TValue> {
191
+ /**
192
+ * @see _.cloneWith
193
+ */
194
+ cloneWith<TResult extends object | string | number | boolean | null>(
195
+ customizer: CloneWithCustomizer<TValue, TResult>
196
+ ): LoDashExplicitWrapper<TResult>;
197
+
198
+ /**
199
+ * @see _.cloneWith
200
+ */
201
+ cloneWith<TResult>(
202
+ customizer: CloneWithCustomizer<TValue, TResult | undefined>
203
+ ): LoDashExplicitWrapper<TResult | TValue>;
204
+
205
+ /**
206
+ * @see _.cloneWith
207
+ */
208
+ cloneWith(): this;
209
+ }
210
+
211
+ // conformsTo
212
+
213
+ interface LoDashStatic {
214
+ /**
215
+ * Checks if object conforms to source by invoking the predicate properties of source with the
216
+ * corresponding property values of object.
217
+ *
218
+ * Note: This method is equivalent to _.conforms when source is partially applied.
219
+ */
220
+ conformsTo<T>(object: T, source: ConformsPredicateObject<T>): boolean;
221
+ }
222
+
223
+ interface LoDashImplicitWrapper<TValue> {
224
+ /**
225
+ * @see _.conformsTo
226
+ */
227
+ conformsTo<T>(this: LoDashImplicitWrapper<T>, source: ConformsPredicateObject<T>): boolean;
228
+ // Note: we can't use TValue here, because it generates a typescript error when strictFunctionTypes is enabled.
229
+ }
230
+
231
+ interface LoDashExplicitWrapper<TValue> {
232
+ /**
233
+ * @see _.conformsTo
234
+ */
235
+ conformsTo<T>(this: LoDashExplicitWrapper<T>, source: ConformsPredicateObject<T>): LoDashExplicitWrapper<boolean>;
236
+ // Note: we can't use TValue here, because it generates a typescript error when strictFunctionTypes is enabled.
237
+ }
238
+
239
+ type CondPair<T, R> = [(val: T) => boolean, (val: T) => R];
240
+
241
+ // eq
242
+
243
+ interface LoDashStatic {
244
+ /**
245
+ * Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
246
+ * comparison between two values to determine if they are equivalent.
247
+ *
248
+ * @category Lang
249
+ * @param value The value to compare.
250
+ * @param other The other value to compare.
251
+ * @returns Returns `true` if the values are equivalent, else `false`.
252
+ * @example
253
+ *
254
+ * var object = { 'user': 'fred' };
255
+ * var other = { 'user': 'fred' };
256
+ *
257
+ * _.eq(object, object);
258
+ * // => true
259
+ *
260
+ * _.eq(object, other);
261
+ * // => false
262
+ *
263
+ * _.eq('a', 'a');
264
+ * // => true
265
+ *
266
+ * _.eq('a', Object('a'));
267
+ * // => false
268
+ *
269
+ * _.eq(NaN, NaN);
270
+ * // => true
271
+ */
272
+ eq(
273
+ value: any,
274
+ other: any
275
+ ): boolean;
276
+ }
277
+
278
+ interface LoDashImplicitWrapper<TValue> {
279
+ /**
280
+ * @see _.eq
281
+ */
282
+ eq(
283
+ other: any
284
+ ): boolean;
285
+ }
286
+
287
+ interface LoDashExplicitWrapper<TValue> {
288
+ /**
289
+ * @see _.eq
290
+ */
291
+ eq(
292
+ other: any
293
+ ): LoDashExplicitWrapper<boolean>;
294
+ }
295
+
296
+ // gt
297
+
298
+ interface LoDashStatic {
299
+ /**
300
+ * Checks if value is greater than other.
301
+ *
302
+ * @param value The value to compare.
303
+ * @param other The other value to compare.
304
+ * @return Returns true if value is greater than other, else false.
305
+ */
306
+ gt(
307
+ value: any,
308
+ other: any
309
+ ): boolean;
310
+ }
311
+
312
+ interface LoDashImplicitWrapper<TValue> {
313
+ /**
314
+ * @see _.gt
315
+ */
316
+ gt(other: any): boolean;
317
+ }
318
+
319
+ interface LoDashExplicitWrapper<TValue> {
320
+ /**
321
+ * @see _.gt
322
+ */
323
+ gt(other: any): LoDashExplicitWrapper<boolean>;
324
+ }
325
+
326
+ // gte
327
+
328
+ interface LoDashStatic {
329
+ /**
330
+ * Checks if value is greater than or equal to other.
331
+ *
332
+ * @param value The value to compare.
333
+ * @param other The other value to compare.
334
+ * @return Returns true if value is greater than or equal to other, else false.
335
+ */
336
+ gte(
337
+ value: any,
338
+ other: any
339
+ ): boolean;
340
+ }
341
+
342
+ interface LoDashImplicitWrapper<TValue> {
343
+ /**
344
+ * @see _.gte
345
+ */
346
+ gte(other: any): boolean;
347
+ }
348
+
349
+ interface LoDashExplicitWrapper<TValue> {
350
+ /**
351
+ * @see _.gte
352
+ */
353
+ gte(other: any): LoDashExplicitWrapper<boolean>;
354
+ }
355
+
356
+ // isArguments
357
+
358
+ interface LoDashStatic {
359
+ /**
360
+ * Checks if value is classified as an arguments object.
361
+ *
362
+ * @param value The value to check.
363
+ * @return Returns true if value is correctly classified, else false.
364
+ */
365
+ isArguments(value?: any): value is IArguments;
366
+ }
367
+
368
+ interface LoDashImplicitWrapper<TValue> {
369
+ /**
370
+ * @see _.isArguments
371
+ */
372
+ isArguments(): boolean;
373
+ }
374
+
375
+ interface LoDashExplicitWrapper<TValue> {
376
+ /**
377
+ * @see _.isArguments
378
+ */
379
+ isArguments(): LoDashExplicitWrapper<boolean>;
380
+ }
381
+
382
+ // isArray
383
+
384
+ interface LoDashStatic {
385
+ /**
386
+ * Checks if value is classified as an Array object.
387
+ * @param value The value to check.
388
+ *
389
+ * @return Returns true if value is correctly classified, else false.
390
+ */
391
+ isArray(value?: any): value is any[];
392
+
393
+ /**
394
+ * DEPRECATED
395
+ */
396
+ isArray<T>(value?: any): value is any[];
397
+ }
398
+
399
+ interface LoDashImplicitWrapper<TValue> {
400
+ /**
401
+ * @see _.isArray
402
+ */
403
+ isArray(): boolean;
404
+ }
405
+
406
+ interface LoDashExplicitWrapper<TValue> {
407
+ /**
408
+ * @see _.isArray
409
+ */
410
+ isArray(): LoDashExplicitWrapper<boolean>;
411
+ }
412
+
413
+ // isArrayBuffer
414
+
415
+ interface LoDashStatic {
416
+ /**
417
+ * Checks if value is classified as an ArrayBuffer object.
418
+ *
419
+ * @param value The value to check.
420
+ * @return Returns true if value is correctly classified, else false.
421
+ */
422
+ isArrayBuffer(value?: any): value is ArrayBuffer;
423
+ }
424
+
425
+ interface LoDashImplicitWrapper<TValue> {
426
+ /**
427
+ * @see _.isArrayBuffer
428
+ */
429
+ isArrayBuffer(): boolean;
430
+ }
431
+
432
+ interface LoDashExplicitWrapper<TValue> {
433
+ /**
434
+ * @see _.isArrayBuffer
435
+ */
436
+ isArrayBuffer(): LoDashExplicitWrapper<boolean>;
437
+ }
438
+
439
+ // isArrayLike
440
+
441
+ interface LoDashStatic {
442
+ /**
443
+ * Checks if `value` is array-like. A value is considered array-like if it's
444
+ * not a function and has a `value.length` that's an integer greater than or
445
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
446
+ *
447
+ * @category Lang
448
+ * @param value The value to check.
449
+ * @returns Returns `true` if `value` is array-like, else `false`.
450
+ * @example
451
+ *
452
+ * _.isArrayLike([1, 2, 3]);
453
+ * // => true
454
+ *
455
+ * _.isArrayLike(document.body.children);
456
+ * // => true
457
+ *
458
+ * _.isArrayLike('abc');
459
+ * // => true
460
+ *
461
+ * _.isArrayLike(_.noop);
462
+ * // => false
463
+ */
464
+ isArrayLike<T>(value: T & string & number): boolean; // should only match if T = any
465
+
466
+ /**
467
+ * @see _.isArrayLike
468
+ */
469
+ isArrayLike(value: ((...args: any[]) => any) | null | undefined): value is never;
470
+
471
+ /**
472
+ * @see _.isArrayLike
473
+ */
474
+ isArrayLike(value: any): value is { length: number };
475
+ }
476
+
477
+ interface LoDashImplicitWrapper<TValue> {
478
+ /**
479
+ * @see _.isArrayLike
480
+ */
481
+ isArrayLike(): boolean;
482
+ }
483
+
484
+ interface LoDashExplicitWrapper<TValue> {
485
+ /**
486
+ * @see _.isArrayLike
487
+ */
488
+ isArrayLike(): LoDashExplicitWrapper<boolean>;
489
+ }
490
+
491
+ // isArrayLikeObject
492
+
493
+ interface LoDashStatic {
494
+ /**
495
+ * This method is like `_.isArrayLike` except that it also checks if `value`
496
+ * is an object.
497
+ *
498
+ * @category Lang
499
+ * @param value The value to check.
500
+ * @returns Returns `true` if `value` is an array-like object, else `false`.
501
+ * @example
502
+ *
503
+ * _.isArrayLikeObject([1, 2, 3]);
504
+ * // => true
505
+ *
506
+ * _.isArrayLikeObject(document.body.children);
507
+ * // => true
508
+ *
509
+ * _.isArrayLikeObject('abc');
510
+ * // => false
511
+ *
512
+ * _.isArrayLikeObject(_.noop);
513
+ * // => false
514
+ */
515
+ isArrayLikeObject<T>(value: T & string & number): boolean; // should only match if T = any
516
+
517
+ /**
518
+ * @see _.isArrayLike
519
+ */
520
+ // tslint:disable-next-line:ban-types (type guard doesn't seem to work correctly without the Function type)
521
+ isArrayLikeObject(value: ((...args: any[]) => any) | Function | string | boolean | number | null | undefined): value is never;
522
+
523
+ /**
524
+ * @see _.isArrayLike
525
+ */
526
+ // tslint:disable-next-line:ban-types (type guard doesn't seem to work correctly without the Function type)
527
+ isArrayLikeObject<T extends object>(value: T | ((...args: any[]) => any) | Function | string | boolean | number | null | undefined): value is T & { length: number };
528
+ }
529
+
530
+ interface LoDashImplicitWrapper<TValue> {
531
+ /**
532
+ * @see _.isArrayLikeObject
533
+ */
534
+ isArrayLikeObject(): boolean;
535
+ }
536
+
537
+ interface LoDashExplicitWrapper<TValue> {
538
+ /**
539
+ * @see _.isArrayLikeObject
540
+ */
541
+ isArrayLikeObject(): LoDashExplicitWrapper<boolean>;
542
+ }
543
+
544
+ // isBoolean
545
+
546
+ interface LoDashStatic {
547
+ /**
548
+ * Checks if value is classified as a boolean primitive or object.
549
+ *
550
+ * @param value The value to check.
551
+ * @return Returns true if value is correctly classified, else false.
552
+ */
553
+ isBoolean(value?: any): value is boolean;
554
+ }
555
+
556
+ interface LoDashImplicitWrapper<TValue> {
557
+ /**
558
+ * @see _.isBoolean
559
+ */
560
+ isBoolean(): boolean;
561
+ }
562
+
563
+ interface LoDashExplicitWrapper<TValue> {
564
+ /**
565
+ * @see _.isBoolean
566
+ */
567
+ isBoolean(): LoDashExplicitWrapper<boolean>;
568
+ }
569
+
570
+ // isBuffer
571
+
572
+ interface LoDashStatic {
573
+ /**
574
+ * Checks if value is a buffer.
575
+ *
576
+ * @param value The value to check.
577
+ * @return Returns true if value is a buffer, else false.
578
+ */
579
+ isBuffer(value?: any): boolean;
580
+ }
581
+
582
+ interface LoDashImplicitWrapper<TValue> {
583
+ /**
584
+ * @see _.isBuffer
585
+ */
586
+ isBuffer(): boolean;
587
+ }
588
+
589
+ interface LoDashExplicitWrapper<TValue> {
590
+ /**
591
+ * @see _.isBuffer
592
+ */
593
+ isBuffer(): LoDashExplicitWrapper<boolean>;
594
+ }
595
+
596
+ // isDate
597
+
598
+ interface LoDashStatic {
599
+ /**
600
+ * Checks if value is classified as a Date object.
601
+ * @param value The value to check.
602
+ *
603
+ * @return Returns true if value is correctly classified, else false.
604
+ */
605
+ isDate(value?: any): value is Date;
606
+ }
607
+
608
+ interface LoDashImplicitWrapper<TValue> {
609
+ /**
610
+ * @see _.isDate
611
+ */
612
+ isDate(): boolean;
613
+ }
614
+
615
+ interface LoDashExplicitWrapper<TValue> {
616
+ /**
617
+ * @see _.isDate
618
+ */
619
+ isDate(): LoDashExplicitWrapper<boolean>;
620
+ }
621
+
622
+ // isElement
623
+
624
+ interface LoDashStatic {
625
+ /**
626
+ * Checks if value is a DOM element.
627
+ *
628
+ * @param value The value to check.
629
+ * @return Returns true if value is a DOM element, else false.
630
+ */
631
+ isElement(value?: any): boolean;
632
+ }
633
+
634
+ interface LoDashImplicitWrapper<TValue> {
635
+ /**
636
+ * @see _.isElement
637
+ */
638
+ isElement(): boolean;
639
+ }
640
+
641
+ interface LoDashExplicitWrapper<TValue> {
642
+ /**
643
+ * @see _.isElement
644
+ */
645
+ isElement(): LoDashExplicitWrapper<boolean>;
646
+ }
647
+
648
+ // isEmpty
649
+
650
+ interface LoDashStatic {
651
+ /**
652
+ * Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string, or
653
+ * jQuery-like collection with a length greater than 0 or an object with own enumerable properties.
654
+ *
655
+ * @param value The value to inspect.
656
+ * @return Returns true if value is empty, else false.
657
+ */
658
+ isEmpty(value?: any): boolean;
659
+ }
660
+
661
+ interface LoDashImplicitWrapper<TValue> {
662
+ /**
663
+ * @see _.isEmpty
664
+ */
665
+ isEmpty(): boolean;
666
+ }
667
+
668
+ interface LoDashExplicitWrapper<TValue> {
669
+ /**
670
+ * @see _.isEmpty
671
+ */
672
+ isEmpty(): LoDashExplicitWrapper<boolean>;
673
+ }
674
+
675
+ // isEqual
676
+
677
+ interface LoDashStatic {
678
+ /**
679
+ * Performs a deep comparison between two values to determine if they are
680
+ * equivalent.
681
+ *
682
+ * **Note:** This method supports comparing arrays, array buffers, booleans,
683
+ * date objects, error objects, maps, numbers, `Object` objects, regexes,
684
+ * sets, strings, symbols, and typed arrays. `Object` objects are compared
685
+ * by their own, not inherited, enumerable properties. Functions and DOM
686
+ * nodes are **not** supported.
687
+ *
688
+ * @category Lang
689
+ * @param value The value to compare.
690
+ * @param other The other value to compare.
691
+ * @returns Returns `true` if the values are equivalent, else `false`.
692
+ * @example
693
+ *
694
+ * var object = { 'user': 'fred' };
695
+ * var other = { 'user': 'fred' };
696
+ *
697
+ * _.isEqual(object, other);
698
+ * // => true
699
+ *
700
+ * object === other;
701
+ * // => false
702
+ */
703
+ isEqual(
704
+ value: any,
705
+ other: any
706
+ ): boolean;
707
+ }
708
+
709
+ interface LoDashImplicitWrapper<TValue> {
710
+ /**
711
+ * @see _.isEqual
712
+ */
713
+ isEqual(
714
+ other: any
715
+ ): boolean;
716
+ }
717
+
718
+ interface LoDashExplicitWrapper<TValue> {
719
+ /**
720
+ * @see _.isEqual
721
+ */
722
+ isEqual(
723
+ other: any
724
+ ): LoDashExplicitWrapper<boolean>;
725
+ }
726
+
727
+ // isEqualWith
728
+
729
+ type IsEqualCustomizer = (value: any, other: any, indexOrKey: PropertyName | undefined, parent: any, otherParent: any, stack: any) => boolean|undefined;
730
+
731
+ interface LoDashStatic {
732
+ /**
733
+ * This method is like `_.isEqual` except that it accepts `customizer` which is
734
+ * invoked to compare values. If `customizer` returns `undefined` comparisons are
735
+ * handled by the method instead. The `customizer` is invoked with up to seven arguments:
736
+ * (objValue, othValue [, index|key, object, other, stack]).
737
+ *
738
+ * @category Lang
739
+ * @param value The value to compare.
740
+ * @param other The other value to compare.
741
+ * @param [customizer] The function to customize comparisons.
742
+ * @returns Returns `true` if the values are equivalent, else `false`.
743
+ * @example
744
+ *
745
+ * function isGreeting(value) {
746
+ * return /^h(?:i|ello)$/.test(value);
747
+ * }
748
+ *
749
+ * function customizer(objValue, othValue) {
750
+ * if (isGreeting(objValue) && isGreeting(othValue)) {
751
+ * return true;
752
+ * }
753
+ * }
754
+ *
755
+ * var array = ['hello', 'goodbye'];
756
+ * var other = ['hi', 'goodbye'];
757
+ *
758
+ * _.isEqualWith(array, other, customizer);
759
+ * // => true
760
+ */
761
+ isEqualWith(
762
+ value: any,
763
+ other: any,
764
+ customizer?: IsEqualCustomizer
765
+ ): boolean;
766
+ }
767
+
768
+ interface LoDashImplicitWrapper<TValue> {
769
+ /**
770
+ * @see _.isEqualWith
771
+ */
772
+ isEqualWith(
773
+ other: any,
774
+ customizer?: IsEqualCustomizer
775
+ ): boolean;
776
+ }
777
+
778
+ interface LoDashExplicitWrapper<TValue> {
779
+ /**
780
+ * @see _.isEqualWith
781
+ */
782
+ isEqualWith(
783
+ other: any,
784
+ customizer?: IsEqualCustomizer
785
+ ): LoDashExplicitWrapper<boolean>;
786
+ }
787
+
788
+ // isError
789
+
790
+ interface LoDashStatic {
791
+ /**
792
+ * Checks if value is an Error, EvalError, RangeError, ReferenceError, SyntaxError, TypeError, or URIError
793
+ * object.
794
+ *
795
+ * @param value The value to check.
796
+ * @return Returns true if value is an error object, else false.
797
+ */
798
+ isError(value: any): value is Error;
799
+ }
800
+
801
+ interface LoDashImplicitWrapper<TValue> {
802
+ /**
803
+ * @see _.isError
804
+ */
805
+ isError(): boolean;
806
+ }
807
+
808
+ interface LoDashExplicitWrapper<TValue> {
809
+ /**
810
+ * @see _.isError
811
+ */
812
+ isError(): LoDashExplicitWrapper<boolean>;
813
+ }
814
+
815
+ // isFinite
816
+
817
+ interface LoDashStatic {
818
+ /**
819
+ * Checks if value is a finite primitive number.
820
+ *
821
+ * Note: This method is based on Number.isFinite.
822
+ *
823
+ * @param value The value to check.
824
+ * @return Returns true if value is a finite number, else false.
825
+ */
826
+ isFinite(value?: any): boolean;
827
+ }
828
+
829
+ interface LoDashImplicitWrapper<TValue> {
830
+ /**
831
+ * @see _.isFinite
832
+ */
833
+ isFinite(): boolean;
834
+ }
835
+
836
+ interface LoDashExplicitWrapper<TValue> {
837
+ /**
838
+ * @see _.isFinite
839
+ */
840
+ isFinite(): LoDashExplicitWrapper<boolean>;
841
+ }
842
+
843
+ // isFunction
844
+
845
+ interface LoDashStatic {
846
+ /**
847
+ * Checks if value is a callable function.
848
+ *
849
+ * @param value The value to check.
850
+ * @return Returns true if value is correctly classified, else false.
851
+ */
852
+ isFunction(value: any): value is (...args: any[]) => any;
853
+ }
854
+
855
+ interface LoDashImplicitWrapper<TValue> {
856
+ /**
857
+ * @see _.isFunction
858
+ */
859
+ isFunction(): boolean;
860
+ }
861
+
862
+ interface LoDashExplicitWrapper<TValue> {
863
+ /**
864
+ * @see _.isFunction
865
+ */
866
+ isFunction(): LoDashExplicitWrapper<boolean>;
867
+ }
868
+
869
+ // isInteger
870
+
871
+ interface LoDashStatic {
872
+ /**
873
+ * Checks if `value` is an integer.
874
+ *
875
+ * **Note:** This method is based on [`Number.isInteger`](https://mdn.io/Number/isInteger).
876
+ *
877
+ * @category Lang
878
+ * @param value The value to check.
879
+ * @returns Returns `true` if `value` is an integer, else `false`.
880
+ * @example
881
+ *
882
+ * _.isInteger(3);
883
+ * // => true
884
+ *
885
+ * _.isInteger(Number.MIN_VALUE);
886
+ * // => false
887
+ *
888
+ * _.isInteger(Infinity);
889
+ * // => false
890
+ *
891
+ * _.isInteger('3');
892
+ * // => false
893
+ */
894
+ isInteger(value?: any): boolean;
895
+ }
896
+
897
+ interface LoDashImplicitWrapper<TValue> {
898
+ /**
899
+ * @see _.isInteger
900
+ */
901
+ isInteger(): boolean;
902
+ }
903
+
904
+ interface LoDashExplicitWrapper<TValue> {
905
+ /**
906
+ * @see _.isInteger
907
+ */
908
+ isInteger(): LoDashExplicitWrapper<boolean>;
909
+ }
910
+
911
+ // isLength
912
+
913
+ interface LoDashStatic {
914
+ /**
915
+ * Checks if `value` is a valid array-like length.
916
+ *
917
+ * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
918
+ *
919
+ * @category Lang
920
+ * @param value The value to check.
921
+ * @returns Returns `true` if `value` is a valid length, else `false`.
922
+ * @example
923
+ *
924
+ * _.isLength(3);
925
+ * // => true
926
+ *
927
+ * _.isLength(Number.MIN_VALUE);
928
+ * // => false
929
+ *
930
+ * _.isLength(Infinity);
931
+ * // => false
932
+ *
933
+ * _.isLength('3');
934
+ * // => false
935
+ */
936
+ isLength(value?: any): boolean;
937
+ }
938
+
939
+ interface LoDashImplicitWrapper<TValue> {
940
+ /**
941
+ * @see _.isLength
942
+ */
943
+ isLength(): boolean;
944
+ }
945
+
946
+ interface LoDashExplicitWrapper<TValue> {
947
+ /**
948
+ * @see _.isLength
949
+ */
950
+ isLength(): LoDashExplicitWrapper<boolean>;
951
+ }
952
+
953
+ // isMap
954
+
955
+ interface LoDashStatic {
956
+ /**
957
+ * Checks if value is classified as a Map object.
958
+ *
959
+ * @param value The value to check.
960
+ * @returns Returns true if value is correctly classified, else false.
961
+ */
962
+ isMap(value?: any): value is Map<any, any>;
963
+ }
964
+
965
+ interface LoDashImplicitWrapper<TValue> {
966
+ /**
967
+ * @see _.isMap
968
+ */
969
+ isMap(): boolean;
970
+ }
971
+
972
+ interface LoDashExplicitWrapper<TValue> {
973
+ /**
974
+ * @see _.isMap
975
+ */
976
+ isMap(): LoDashExplicitWrapper<boolean>;
977
+ }
978
+
979
+ // isMatch
980
+
981
+ type isMatchCustomizer = (value: any, other: any, indexOrKey?: PropertyName) => boolean;
982
+
983
+ interface LoDashStatic {
984
+ /**
985
+ * Performs a deep comparison between `object` and `source` to determine if
986
+ * `object` contains equivalent property values.
987
+ *
988
+ * **Note:** This method supports comparing the same values as `_.isEqual`.
989
+ *
990
+ * @category Lang
991
+ * @param object The object to inspect.
992
+ * @param source The object of property values to match.
993
+ * @returns Returns `true` if `object` is a match, else `false`.
994
+ * @example
995
+ *
996
+ * var object = { 'user': 'fred', 'age': 40 };
997
+ *
998
+ * _.isMatch(object, { 'age': 40 });
999
+ * // => true
1000
+ *
1001
+ * _.isMatch(object, { 'age': 36 });
1002
+ * // => false
1003
+ */
1004
+ isMatch(object: object, source: object): boolean;
1005
+ }
1006
+
1007
+ interface LoDashImplicitWrapper<TValue> {
1008
+ /**
1009
+ * @see _.isMatch
1010
+ */
1011
+ isMatch(source: object): boolean;
1012
+ }
1013
+
1014
+ interface LoDashExplicitWrapper<TValue> {
1015
+ /**
1016
+ * @see _.isMatch
1017
+ */
1018
+ isMatch(source: object): LoDashExplicitWrapper<boolean>;
1019
+ }
1020
+
1021
+ // isMatchWith
1022
+
1023
+ type isMatchWithCustomizer = (value: any, other: any, indexOrKey: PropertyName) => boolean;
1024
+
1025
+ interface LoDashStatic {
1026
+ /**
1027
+ * This method is like `_.isMatch` except that it accepts `customizer` which
1028
+ * is invoked to compare values. If `customizer` returns `undefined` comparisons
1029
+ * are handled by the method instead. The `customizer` is invoked with three
1030
+ * arguments: (objValue, srcValue, index|key, object, source).
1031
+ *
1032
+ * @category Lang
1033
+ * @param object The object to inspect.
1034
+ * @param source The object of property values to match.
1035
+ * @param [customizer] The function to customize comparisons.
1036
+ * @returns Returns `true` if `object` is a match, else `false`.
1037
+ * @example
1038
+ *
1039
+ * function isGreeting(value) {
1040
+ * return /^h(?:i|ello)$/.test(value);
1041
+ * }
1042
+ *
1043
+ * function customizer(objValue, srcValue) {
1044
+ * if (isGreeting(objValue) && isGreeting(srcValue)) {
1045
+ * return true;
1046
+ * }
1047
+ * }
1048
+ *
1049
+ * var object = { 'greeting': 'hello' };
1050
+ * var source = { 'greeting': 'hi' };
1051
+ *
1052
+ * _.isMatchWith(object, source, customizer);
1053
+ * // => true
1054
+ */
1055
+ isMatchWith(object: object, source: object, customizer: isMatchWithCustomizer): boolean;
1056
+ }
1057
+
1058
+ interface LoDashImplicitWrapper<TValue> {
1059
+ /**
1060
+ * @see _.isMatchWith
1061
+ */
1062
+ isMatchWith(source: object, customizer: isMatchWithCustomizer): boolean;
1063
+ }
1064
+
1065
+ interface LoDashExplicitWrapper<TValue> {
1066
+ /**
1067
+ * @see _.isMatchWith
1068
+ */
1069
+ isMatchWith(source: object, customizer: isMatchWithCustomizer): LoDashExplicitWrapper<boolean>;
1070
+ }
1071
+
1072
+ // isNaN
1073
+
1074
+ interface LoDashStatic {
1075
+ /**
1076
+ * Checks if value is NaN.
1077
+ *
1078
+ * Note: This method is not the same as isNaN which returns true for undefined and other non-numeric values.
1079
+ *
1080
+ * @param value The value to check.
1081
+ * @return Returns true if value is NaN, else false.
1082
+ */
1083
+ isNaN(value?: any): boolean;
1084
+ }
1085
+
1086
+ interface LoDashImplicitWrapper<TValue> {
1087
+ /**
1088
+ * @see _.isNaN
1089
+ */
1090
+ isNaN(): boolean;
1091
+ }
1092
+
1093
+ interface LoDashExplicitWrapper<TValue> {
1094
+ /**
1095
+ * @see _.isNaN
1096
+ */
1097
+ isNaN(): LoDashExplicitWrapper<boolean>;
1098
+ }
1099
+
1100
+ // isNative
1101
+
1102
+ interface LoDashStatic {
1103
+ /**
1104
+ * Checks if value is a native function.
1105
+ * @param value The value to check.
1106
+ *
1107
+ * @retrun Returns true if value is a native function, else false.
1108
+ */
1109
+ isNative(value: any): value is (...args: any[]) => any;
1110
+ }
1111
+
1112
+ interface LoDashImplicitWrapper<TValue> {
1113
+ /**
1114
+ * see _.isNative
1115
+ */
1116
+ isNative(): boolean;
1117
+ }
1118
+
1119
+ interface LoDashExplicitWrapper<TValue> {
1120
+ /**
1121
+ * see _.isNative
1122
+ */
1123
+ isNative(): LoDashExplicitWrapper<boolean>;
1124
+ }
1125
+
1126
+ // isNil
1127
+
1128
+ interface LoDashStatic {
1129
+ /**
1130
+ * Checks if `value` is `null` or `undefined`.
1131
+ *
1132
+ * @category Lang
1133
+ * @param value The value to check.
1134
+ * @returns Returns `true` if `value` is nullish, else `false`.
1135
+ * @example
1136
+ *
1137
+ * _.isNil(null);
1138
+ * // => true
1139
+ *
1140
+ * _.isNil(void 0);
1141
+ * // => true
1142
+ *
1143
+ * _.isNil(NaN);
1144
+ * // => false
1145
+ */
1146
+ isNil(value: any): value is null | undefined;
1147
+ }
1148
+
1149
+ interface LoDashImplicitWrapper<TValue> {
1150
+ /**
1151
+ * see _.isNil
1152
+ */
1153
+ isNil(): boolean;
1154
+ }
1155
+
1156
+ interface LoDashExplicitWrapper<TValue> {
1157
+ /**
1158
+ * see _.isNil
1159
+ */
1160
+ isNil(): LoDashExplicitWrapper<boolean>;
1161
+ }
1162
+
1163
+ // isNull
1164
+
1165
+ interface LoDashStatic {
1166
+ /**
1167
+ * Checks if value is null.
1168
+ *
1169
+ * @param value The value to check.
1170
+ * @return Returns true if value is null, else false.
1171
+ */
1172
+ isNull(value: any): value is null;
1173
+ }
1174
+
1175
+ interface LoDashImplicitWrapper<TValue> {
1176
+ /**
1177
+ * see _.isNull
1178
+ */
1179
+ isNull(): boolean;
1180
+ }
1181
+
1182
+ interface LoDashExplicitWrapper<TValue> {
1183
+ /**
1184
+ * see _.isNull
1185
+ */
1186
+ isNull(): LoDashExplicitWrapper<boolean>;
1187
+ }
1188
+
1189
+ // isNumber
1190
+
1191
+ interface LoDashStatic {
1192
+ /**
1193
+ * Checks if value is classified as a Number primitive or object.
1194
+ *
1195
+ * Note: To exclude Infinity, -Infinity, and NaN, which are classified as numbers, use the _.isFinite method.
1196
+ *
1197
+ * @param value The value to check.
1198
+ * @return Returns true if value is correctly classified, else false.
1199
+ */
1200
+ isNumber(value?: any): value is number;
1201
+ }
1202
+
1203
+ interface LoDashImplicitWrapper<TValue> {
1204
+ /**
1205
+ * see _.isNumber
1206
+ */
1207
+ isNumber(): boolean;
1208
+ }
1209
+
1210
+ interface LoDashExplicitWrapper<TValue> {
1211
+ /**
1212
+ * see _.isNumber
1213
+ */
1214
+ isNumber(): LoDashExplicitWrapper<boolean>;
1215
+ }
1216
+
1217
+ // isObject
1218
+
1219
+ interface LoDashStatic {
1220
+ /**
1221
+ * Checks if value is the language type of Object. (e.g. arrays, functions, objects, regexes, new Number(0),
1222
+ * and new String(''))
1223
+ *
1224
+ * @param value The value to check.
1225
+ * @return Returns true if value is an object, else false.
1226
+ */
1227
+ isObject(value?: any): boolean;
1228
+ }
1229
+
1230
+ interface LoDashImplicitWrapper<TValue> {
1231
+ /**
1232
+ * see _.isObject
1233
+ */
1234
+ isObject(): boolean;
1235
+ }
1236
+
1237
+ interface LoDashExplicitWrapper<TValue> {
1238
+ /**
1239
+ * see _.isObject
1240
+ */
1241
+ isObject(): LoDashExplicitWrapper<boolean>;
1242
+ }
1243
+
1244
+ // isObjectLike
1245
+
1246
+ interface LoDashStatic {
1247
+ /**
1248
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
1249
+ * and has a `typeof` result of "object".
1250
+ *
1251
+ * @category Lang
1252
+ * @param value The value to check.
1253
+ * @returns Returns `true` if `value` is object-like, else `false`.
1254
+ * @example
1255
+ *
1256
+ * _.isObjectLike({});
1257
+ * // => true
1258
+ *
1259
+ * _.isObjectLike([1, 2, 3]);
1260
+ * // => true
1261
+ *
1262
+ * _.isObjectLike(_.noop);
1263
+ * // => false
1264
+ *
1265
+ * _.isObjectLike(null);
1266
+ * // => false
1267
+ */
1268
+ isObjectLike(value?: any): boolean;
1269
+ }
1270
+
1271
+ interface LoDashImplicitWrapper<TValue> {
1272
+ /**
1273
+ * see _.isObjectLike
1274
+ */
1275
+ isObjectLike(): boolean;
1276
+ }
1277
+
1278
+ interface LoDashExplicitWrapper<TValue> {
1279
+ /**
1280
+ * see _.isObjectLike
1281
+ */
1282
+ isObjectLike(): LoDashExplicitWrapper<boolean>;
1283
+ }
1284
+
1285
+ // isPlainObject
1286
+
1287
+ interface LoDashStatic {
1288
+ /**
1289
+ * Checks if value is a plain object, that is, an object created by the Object constructor or one with a
1290
+ * [[Prototype]] of null.
1291
+ *
1292
+ * Note: This method assumes objects created by the Object constructor have no inherited enumerable properties.
1293
+ *
1294
+ * @param value The value to check.
1295
+ * @return Returns true if value is a plain object, else false.
1296
+ */
1297
+ isPlainObject(value?: any): boolean;
1298
+ }
1299
+
1300
+ interface LoDashImplicitWrapper<TValue> {
1301
+ /**
1302
+ * see _.isPlainObject
1303
+ */
1304
+ isPlainObject(): boolean;
1305
+ }
1306
+
1307
+ interface LoDashExplicitWrapper<TValue> {
1308
+ /**
1309
+ * see _.isPlainObject
1310
+ */
1311
+ isPlainObject(): LoDashExplicitWrapper<boolean>;
1312
+ }
1313
+
1314
+ // isRegExp
1315
+
1316
+ interface LoDashStatic {
1317
+ /**
1318
+ * Checks if value is classified as a RegExp object.
1319
+ * @param value The value to check.
1320
+ *
1321
+ * @return Returns true if value is correctly classified, else false.
1322
+ */
1323
+ isRegExp(value?: any): value is RegExp;
1324
+ }
1325
+
1326
+ interface LoDashImplicitWrapper<TValue> {
1327
+ /**
1328
+ * see _.isRegExp
1329
+ */
1330
+ isRegExp(): boolean;
1331
+ }
1332
+
1333
+ interface LoDashExplicitWrapper<TValue> {
1334
+ /**
1335
+ * see _.isRegExp
1336
+ */
1337
+ isRegExp(): LoDashExplicitWrapper<boolean>;
1338
+ }
1339
+
1340
+ // isSafeInteger
1341
+
1342
+ interface LoDashStatic {
1343
+ /**
1344
+ * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
1345
+ * double precision number which isn't the result of a rounded unsafe integer.
1346
+ *
1347
+ * **Note:** This method is based on [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
1348
+ *
1349
+ * @category Lang
1350
+ * @param value The value to check.
1351
+ * @returns Returns `true` if `value` is a safe integer, else `false`.
1352
+ * @example
1353
+ *
1354
+ * _.isSafeInteger(3);
1355
+ * // => true
1356
+ *
1357
+ * _.isSafeInteger(Number.MIN_VALUE);
1358
+ * // => false
1359
+ *
1360
+ * _.isSafeInteger(Infinity);
1361
+ * // => false
1362
+ *
1363
+ * _.isSafeInteger('3');
1364
+ * // => false
1365
+ */
1366
+ isSafeInteger(value: any): boolean;
1367
+ }
1368
+
1369
+ interface LoDashImplicitWrapper<TValue> {
1370
+ /**
1371
+ * see _.isSafeInteger
1372
+ */
1373
+ isSafeInteger(): boolean;
1374
+ }
1375
+
1376
+ interface LoDashExplicitWrapper<TValue> {
1377
+ /**
1378
+ * see _.isSafeInteger
1379
+ */
1380
+ isSafeInteger(): LoDashExplicitWrapper<boolean>;
1381
+ }
1382
+
1383
+ // isSet
1384
+
1385
+ interface LoDashStatic {
1386
+ /**
1387
+ * Checks if value is classified as a Set object.
1388
+ *
1389
+ * @param value The value to check.
1390
+ * @returns Returns true if value is correctly classified, else false.
1391
+ */
1392
+ isSet(value?: any): value is Set<any>;
1393
+ }
1394
+
1395
+ interface LoDashImplicitWrapper<TValue> {
1396
+ /**
1397
+ * @see _.isSet
1398
+ */
1399
+ isSet(): boolean;
1400
+ }
1401
+
1402
+ interface LoDashExplicitWrapper<TValue> {
1403
+ /**
1404
+ * @see _.isSet
1405
+ */
1406
+ isSet(): LoDashExplicitWrapper<boolean>;
1407
+ }
1408
+
1409
+ // isString
1410
+
1411
+ interface LoDashStatic {
1412
+ /**
1413
+ * Checks if value is classified as a String primitive or object.
1414
+ *
1415
+ * @param value The value to check.
1416
+ * @return Returns true if value is correctly classified, else false.
1417
+ */
1418
+ isString(value?: any): value is string;
1419
+ }
1420
+
1421
+ interface LoDashImplicitWrapper<TValue> {
1422
+ /**
1423
+ * see _.isString
1424
+ */
1425
+ isString(): boolean;
1426
+ }
1427
+
1428
+ interface LoDashExplicitWrapper<TValue> {
1429
+ /**
1430
+ * see _.isString
1431
+ */
1432
+ isString(): LoDashExplicitWrapper<boolean>;
1433
+ }
1434
+
1435
+ // isSymbol
1436
+
1437
+ interface LoDashStatic {
1438
+ /**
1439
+ * Checks if `value` is classified as a `Symbol` primitive or object.
1440
+ *
1441
+ * @category Lang
1442
+ * @param value The value to check.
1443
+ * @returns Returns `true` if `value` is correctly classified, else `false`.
1444
+ * @example
1445
+ *
1446
+ * _.isSymbol(Symbol.iterator);
1447
+ * // => true
1448
+ *
1449
+ * _.isSymbol('abc');
1450
+ * // => false
1451
+ */
1452
+ isSymbol(value: any): boolean;
1453
+ }
1454
+
1455
+ interface LoDashImplicitWrapper<TValue> {
1456
+ /**
1457
+ * see _.isSymbol
1458
+ */
1459
+ isSymbol(): boolean;
1460
+ }
1461
+
1462
+ interface LoDashExplicitWrapper<TValue> {
1463
+ /**
1464
+ * see _.isSymbol
1465
+ */
1466
+ isSymbol(): LoDashExplicitWrapper<boolean>;
1467
+ }
1468
+
1469
+ // isTypedArray
1470
+
1471
+ interface LoDashStatic {
1472
+ /**
1473
+ * Checks if value is classified as a typed array.
1474
+ *
1475
+ * @param value The value to check.
1476
+ * @return Returns true if value is correctly classified, else false.
1477
+ */
1478
+ isTypedArray(value: any): boolean;
1479
+ }
1480
+
1481
+ interface LoDashImplicitWrapper<TValue> {
1482
+ /**
1483
+ * see _.isTypedArray
1484
+ */
1485
+ isTypedArray(): boolean;
1486
+ }
1487
+
1488
+ interface LoDashExplicitWrapper<TValue> {
1489
+ /**
1490
+ * see _.isTypedArray
1491
+ */
1492
+ isTypedArray(): LoDashExplicitWrapper<boolean>;
1493
+ }
1494
+
1495
+ // isUndefined
1496
+
1497
+ interface LoDashStatic {
1498
+ /**
1499
+ * Checks if value is undefined.
1500
+ *
1501
+ * @param value The value to check.
1502
+ * @return Returns true if value is undefined, else false.
1503
+ */
1504
+ isUndefined(value: any): value is undefined;
1505
+ }
1506
+
1507
+ interface LoDashImplicitWrapper<TValue> {
1508
+ /**
1509
+ * see _.isUndefined
1510
+ */
1511
+ isUndefined(): boolean;
1512
+ }
1513
+
1514
+ interface LoDashExplicitWrapper<TValue> {
1515
+ /**
1516
+ * see _.isUndefined
1517
+ */
1518
+ isUndefined(): LoDashExplicitWrapper<boolean>;
1519
+ }
1520
+
1521
+ // isWeakMap
1522
+
1523
+ interface LoDashStatic {
1524
+ /**
1525
+ * Checks if value is classified as a WeakMap object.
1526
+ *
1527
+ * @param value The value to check.
1528
+ * @returns Returns true if value is correctly classified, else false.
1529
+ */
1530
+ isWeakMap(value?: any): value is WeakMap<object, any>;
1531
+ }
1532
+
1533
+ interface LoDashImplicitWrapper<TValue> {
1534
+ /**
1535
+ * @see _.isSet
1536
+ */
1537
+ isWeakMap(): boolean;
1538
+ }
1539
+
1540
+ interface LoDashExplicitWrapper<TValue> {
1541
+ /**
1542
+ * @see _.isSet
1543
+ */
1544
+ isWeakMap(): LoDashExplicitWrapper<boolean>;
1545
+ }
1546
+
1547
+ // isWeakSet
1548
+
1549
+ interface LoDashStatic {
1550
+ /**
1551
+ * Checks if value is classified as a WeakSet object.
1552
+ *
1553
+ * @param value The value to check.
1554
+ * @returns Returns true if value is correctly classified, else false.
1555
+ */
1556
+ isWeakSet(value?: any): value is WeakSet<object>;
1557
+ }
1558
+
1559
+ interface LoDashImplicitWrapper<TValue> {
1560
+ /**
1561
+ * @see _.isWeakSet
1562
+ */
1563
+ isWeakSet(): boolean;
1564
+ }
1565
+
1566
+ interface LoDashExplicitWrapper<TValue> {
1567
+ /**
1568
+ * @see _.isWeakSet
1569
+ */
1570
+ isWeakSet(): LoDashExplicitWrapper<boolean>;
1571
+ }
1572
+
1573
+ // lt
1574
+
1575
+ interface LoDashStatic {
1576
+ /**
1577
+ * Checks if value is less than other.
1578
+ *
1579
+ * @param value The value to compare.
1580
+ * @param other The other value to compare.
1581
+ * @return Returns true if value is less than other, else false.
1582
+ */
1583
+ lt(
1584
+ value: any,
1585
+ other: any
1586
+ ): boolean;
1587
+ }
1588
+
1589
+ interface LoDashImplicitWrapper<TValue> {
1590
+ /**
1591
+ * @see _.lt
1592
+ */
1593
+ lt(other: any): boolean;
1594
+ }
1595
+
1596
+ interface LoDashExplicitWrapper<TValue> {
1597
+ /**
1598
+ * @see _.lt
1599
+ */
1600
+ lt(other: any): LoDashExplicitWrapper<boolean>;
1601
+ }
1602
+
1603
+ // lte
1604
+
1605
+ interface LoDashStatic {
1606
+ /**
1607
+ * Checks if value is less than or equal to other.
1608
+ *
1609
+ * @param value The value to compare.
1610
+ * @param other The other value to compare.
1611
+ * @return Returns true if value is less than or equal to other, else false.
1612
+ */
1613
+ lte(
1614
+ value: any,
1615
+ other: any
1616
+ ): boolean;
1617
+ }
1618
+
1619
+ interface LoDashImplicitWrapper<TValue> {
1620
+ /**
1621
+ * @see _.lte
1622
+ */
1623
+ lte(other: any): boolean;
1624
+ }
1625
+
1626
+ interface LoDashExplicitWrapper<TValue> {
1627
+ /**
1628
+ * @see _.lte
1629
+ */
1630
+ lte(other: any): LoDashExplicitWrapper<boolean>;
1631
+ }
1632
+
1633
+ // toArray
1634
+
1635
+ interface LoDashStatic {
1636
+ /**
1637
+ * Converts value to an array.
1638
+ *
1639
+ * @param value The value to convert.
1640
+ * @return Returns the converted array.
1641
+ */
1642
+ toArray<T>(value: List<T> | Dictionary<T> | NumericDictionary<T> | null | undefined): T[];
1643
+
1644
+ /**
1645
+ * @see _.toArray
1646
+ */
1647
+ toArray<T>(value: T): Array<T[keyof T]>;
1648
+
1649
+ /**
1650
+ * @see _.toArray
1651
+ */
1652
+ toArray(): any[];
1653
+ }
1654
+
1655
+ interface LoDashImplicitWrapper<TValue> {
1656
+ /**
1657
+ * @see _.toArray
1658
+ */
1659
+ toArray<T>(this: LoDashImplicitWrapper<List<T> | Dictionary<T> | NumericDictionary<T> | null | undefined>): LoDashImplicitWrapper<T[]>;
1660
+
1661
+ /**
1662
+ * @see _.toArray
1663
+ */
1664
+ toArray<T extends object>(this: LoDashImplicitWrapper<T>): LoDashImplicitWrapper<Array<T[keyof T]>>;
1665
+ }
1666
+
1667
+ interface LoDashExplicitWrapper<TValue> {
1668
+ /**
1669
+ * @see _.toArray
1670
+ */
1671
+ toArray<T>(this: LoDashExplicitWrapper<List<T> | Dictionary<T> | NumericDictionary<T> | null | undefined>): LoDashExplicitWrapper<T[]>;
1672
+
1673
+ /**
1674
+ * @see _.toArray
1675
+ */
1676
+ toArray<T extends object>(this: LoDashImplicitWrapper<T>): LoDashExplicitWrapper<Array<T[keyof T]>>;
1677
+ }
1678
+
1679
+ // toFinite
1680
+
1681
+ interface LoDashStatic {
1682
+ /**
1683
+ * Converts `value` to a finite number.
1684
+ *
1685
+ * @since 4.12.0
1686
+ * @category Lang
1687
+ * @param value The value to convert.
1688
+ * @returns Returns the converted number.
1689
+ * @example
1690
+ *
1691
+ * _.toFinite(3.2);
1692
+ * // => 3.2
1693
+ *
1694
+ * _.toFinite(Number.MIN_VALUE);
1695
+ * // => 5e-324
1696
+ *
1697
+ * _.toFinite(Infinity);
1698
+ * // => 1.7976931348623157e+308
1699
+ *
1700
+ * _.toFinite('3.2');
1701
+ * // => 3.2
1702
+ */
1703
+ toFinite(value: any): number;
1704
+ }
1705
+
1706
+ interface LoDashImplicitWrapper<TValue> {
1707
+ /**
1708
+ * @see _.toFinite
1709
+ */
1710
+ toFinite(): number;
1711
+ }
1712
+
1713
+ interface LoDashExplicitWrapper<TValue> {
1714
+ /**
1715
+ * @see _.toFinite
1716
+ */
1717
+ toFinite(): LoDashExplicitWrapper<number>;
1718
+ }
1719
+
1720
+ // toInteger
1721
+
1722
+ interface LoDashStatic {
1723
+ /**
1724
+ * Converts `value` to an integer.
1725
+ *
1726
+ * **Note:** This function is loosely based on [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
1727
+ *
1728
+ * @category Lang
1729
+ * @param value The value to convert.
1730
+ * @returns Returns the converted integer.
1731
+ * @example
1732
+ *
1733
+ * _.toInteger(3);
1734
+ * // => 3
1735
+ *
1736
+ * _.toInteger(Number.MIN_VALUE);
1737
+ * // => 0
1738
+ *
1739
+ * _.toInteger(Infinity);
1740
+ * // => 1.7976931348623157e+308
1741
+ *
1742
+ * _.toInteger('3');
1743
+ * // => 3
1744
+ */
1745
+ toInteger(value: any): number;
1746
+ }
1747
+
1748
+ interface LoDashImplicitWrapper<TValue> {
1749
+ /**
1750
+ * @see _.toInteger
1751
+ */
1752
+ toInteger(): number;
1753
+ }
1754
+
1755
+ interface LoDashExplicitWrapper<TValue> {
1756
+ /**
1757
+ * @see _.toInteger
1758
+ */
1759
+ toInteger(): LoDashExplicitWrapper<number>;
1760
+ }
1761
+
1762
+ // toLength
1763
+
1764
+ interface LoDashStatic {
1765
+ /**
1766
+ * Converts `value` to an integer suitable for use as the length of an
1767
+ * array-like object.
1768
+ *
1769
+ * **Note:** This method is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
1770
+ *
1771
+ * @category Lang
1772
+ * @param value The value to convert.
1773
+ * @return Returns the converted integer.
1774
+ * @example
1775
+ *
1776
+ * _.toLength(3);
1777
+ * // => 3
1778
+ *
1779
+ * _.toLength(Number.MIN_VALUE);
1780
+ * // => 0
1781
+ *
1782
+ * _.toLength(Infinity);
1783
+ * // => 4294967295
1784
+ *
1785
+ * _.toLength('3');
1786
+ * // => 3
1787
+ */
1788
+ toLength(value: any): number;
1789
+ }
1790
+
1791
+ interface LoDashImplicitWrapper<TValue> {
1792
+ /**
1793
+ * @see _.toLength
1794
+ */
1795
+ toLength(): number;
1796
+ }
1797
+
1798
+ interface LoDashExplicitWrapper<TValue> {
1799
+ /**
1800
+ * @see _.toLength
1801
+ */
1802
+ toLength(): LoDashExplicitWrapper<number>;
1803
+ }
1804
+
1805
+ // toNumber
1806
+
1807
+ interface LoDashStatic {
1808
+ /**
1809
+ * Converts `value` to a number.
1810
+ *
1811
+ * @category Lang
1812
+ * @param value The value to process.
1813
+ * @returns Returns the number.
1814
+ * @example
1815
+ *
1816
+ * _.toNumber(3);
1817
+ * // => 3
1818
+ *
1819
+ * _.toNumber(Number.MIN_VALUE);
1820
+ * // => 5e-324
1821
+ *
1822
+ * _.toNumber(Infinity);
1823
+ * // => Infinity
1824
+ *
1825
+ * _.toNumber('3');
1826
+ * // => 3
1827
+ */
1828
+ toNumber(value: any): number;
1829
+ }
1830
+
1831
+ interface LoDashImplicitWrapper<TValue> {
1832
+ /**
1833
+ * @see _.toNumber
1834
+ */
1835
+ toNumber(): number;
1836
+ }
1837
+
1838
+ interface LoDashExplicitWrapper<TValue> {
1839
+ /**
1840
+ * @see _.toNumber
1841
+ */
1842
+ toNumber(): LoDashExplicitWrapper<number>;
1843
+ }
1844
+
1845
+ // toPlainObject
1846
+
1847
+ interface LoDashStatic {
1848
+ /**
1849
+ * Converts value to a plain object flattening inherited enumerable properties of value to own properties
1850
+ * of the plain object.
1851
+ *
1852
+ * @param value The value to convert.
1853
+ * @return Returns the converted plain object.
1854
+ */
1855
+ toPlainObject(value?: any): any;
1856
+ }
1857
+
1858
+ interface LoDashImplicitWrapper<TValue> {
1859
+ /**
1860
+ * @see _.toPlainObject
1861
+ */
1862
+ toPlainObject(): LoDashImplicitWrapper<any>;
1863
+ }
1864
+
1865
+ interface LoDashExplicitWrapper<TValue> {
1866
+ /**
1867
+ * @see _.toPlainObject
1868
+ */
1869
+ toPlainObject(): LoDashExplicitWrapper<any>;
1870
+ }
1871
+
1872
+ // toSafeInteger
1873
+
1874
+ interface LoDashStatic {
1875
+ /**
1876
+ * Converts `value` to a safe integer. A safe integer can be compared and
1877
+ * represented correctly.
1878
+ *
1879
+ * @category Lang
1880
+ * @param value The value to convert.
1881
+ * @returns Returns the converted integer.
1882
+ * @example
1883
+ *
1884
+ * _.toSafeInteger(3);
1885
+ * // => 3
1886
+ *
1887
+ * _.toSafeInteger(Number.MIN_VALUE);
1888
+ * // => 0
1889
+ *
1890
+ * _.toSafeInteger(Infinity);
1891
+ * // => 9007199254740991
1892
+ *
1893
+ * _.toSafeInteger('3');
1894
+ * // => 3
1895
+ */
1896
+ toSafeInteger(value: any): number;
1897
+ }
1898
+
1899
+ interface LoDashImplicitWrapper<TValue> {
1900
+ /**
1901
+ * @see _.toSafeInteger
1902
+ */
1903
+ toSafeInteger(): number;
1904
+ }
1905
+
1906
+ interface LoDashExplicitWrapper<TValue> {
1907
+ /**
1908
+ * @see _.toSafeInteger
1909
+ */
1910
+ toSafeInteger(): LoDashExplicitWrapper<number>;
1911
+ }
1912
+
1913
+ // toString
1914
+
1915
+ interface LoDashStatic {
1916
+ /**
1917
+ * Converts `value` to a string if it's not one. An empty string is returned
1918
+ * for `null` and `undefined` values. The sign of `-0` is preserved.
1919
+ *
1920
+ * @category Lang
1921
+ * @param value The value to process.
1922
+ * @returns Returns the string.
1923
+ * @example
1924
+ *
1925
+ * _.toString(null);
1926
+ * // => ''
1927
+ *
1928
+ * _.toString(-0);
1929
+ * // => '-0'
1930
+ *
1931
+ * _.toString([1, 2, 3]);
1932
+ * // => '1,2,3'
1933
+ */
1934
+ toString(value: any): string;
1935
+ }
1936
+ }