@@ -22,7 +22,7 @@ declare module _ {
22
22
* forEach, forEachRight, forIn, forInRight, forOwn, forOwnRight, functions, groupBy,
23
23
* indexBy, initial, intersection, invert, invoke, keys, map, max, memoize, merge, min,
24
24
* object, omit, once, pairs, partial, partialRight, pick, pluck, pull, push, range, reject,
25
- * remove, rest, reverse, shuffle, slice, sort, sortBy, splice, tap, throttle, times,
25
+ * remove, rest, reverse, sample, shuffle, slice, sort, sortBy, splice, tap, throttle, times,
26
26
* toArray, transform, union, uniq, unshift, unzip, values, where, without, wrap, and zip
27
27
*
28
28
* The non-chainable wrapper functions are:
@@ -4559,6 +4559,18 @@ declare module _ {
4559
4559
sample < T > ( collection : Dictionary < T > , n : number ) : T [ ] ;
4560
4560
}
4561
4561
4562
+ interface LoDashArrayWrapper < T > {
4563
+ /**
4564
+ * @see _.sample
4565
+ **/
4566
+ sample ( n : number ) : LoDashArrayWrapper < T > ;
4567
+
4568
+ /**
4569
+ * @see _.sample
4570
+ **/
4571
+ sample ( ) : LoDashArrayWrapper < T > ;
4572
+ }
4573
+
4562
4574
//_.shuffle
4563
4575
interface LoDashStatic {
4564
4576
/**
0 commit comments