Fix size() when in chain()

This commit is contained in:
Andrei Alecu
2016-01-08 15:44:38 +02:00
parent 07b956ceea
commit 2684cdb764
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -493,10 +493,11 @@ function strong_typed_values_tests() {
return [r.title, true];
}).object().value();
_(dictionaryLike).each((x) => {
var x: number = _(dictionaryLike).chain().filter((x) => {
console.log(x.title);
console.log(x.value.toFixed());
});
return x.title == 'item1';
}).size().value();
_.values<{title: string, value: number}>(dictionaryLike);
}
+1 -1
View File
@@ -2824,7 +2824,7 @@ interface _Chain<T> {
* Wrapped type `any`.
* @see _.size
**/
size(): _Chain<T>;
size(): _ChainSingle<number>;
/*********
* Arrays *