From 4be7a74f86580bf4d729262e33e78ebfb56105ec Mon Sep 17 00:00:00 2001 From: nfantone Date: Sun, 28 Jun 2015 01:33:30 -0300 Subject: [PATCH] Change LoDashArrayWrapper -> LoDashWrapper in sample() chaining --- lodash/lodash-tests.ts | 4 +++- lodash/lodash.d.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index e0f2b8226..499b53853 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -605,8 +605,10 @@ result = _(foodsCombined).reject({ 'type': 'fruit' }).value(); result = _.sample([1, 2, 3, 4]); result = _.sample([1, 2, 3, 4], 2); -result = <_.LoDashArrayWrapper>_([1, 2, 3, 4]).sample(); +result = <_.LoDashWrapper>_([1, 2, 3, 4]).sample(); result = <_.LoDashArrayWrapper>_([1, 2, 3, 4]).sample(2); +result = _([1, 2, 3, 4]).sample().value(); +result = _([1, 2, 3, 4]).sample(2).value(); result = _.shuffle([1, 2, 3, 4, 5, 6]); result = <_.LoDashArrayWrapper>_([1, 2, 3]).shuffle(); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index a906b907f..e07d320df 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -4568,7 +4568,7 @@ declare module _ { /** * @see _.sample **/ - sample(): LoDashArrayWrapper; + sample(): LoDashWrapper; } //_.shuffle