@types/lodash 4.14.100 → 4.14.104

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