From 07b956ceeacbe3c6cb5c5787813ea161697329a8 Mon Sep 17 00:00:00 2001 From: Andrei Alecu Date: Thu, 7 Jan 2016 16:36:06 +0200 Subject: [PATCH] Formatting. --- underscore/underscore-tests.ts | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/underscore/underscore-tests.ts b/underscore/underscore-tests.ts index b57e6e37e..661daf8c6 100644 --- a/underscore/underscore-tests.ts +++ b/underscore/underscore-tests.ts @@ -481,22 +481,22 @@ _.chain(obj).map(function (value, key) { }); function strong_typed_values_tests() { - var dictionaryLike: { [k: string] : {title: string, value: number} } = { - 'test' : { title: 'item1', value: 5 }, - 'another' : { title: 'item2', value: 8 }, - 'third' : { title: 'item3', value: 10 } - }, - empty = {}; + var dictionaryLike: { [k: string] : {title: string, value: number} } = { + 'test' : { title: 'item1', value: 5 }, + 'another' : { title: 'item2', value: 8 }, + 'third' : { title: 'item3', value: 10 } + }; - _.chain(dictionaryLike).values().filter((r) => { - return r.value >= 8; - }).map((r) => { - return [r.title, true]; - }).object().value(); + _.chain(dictionaryLike).values().filter((r) => { + return r.value >= 8; + }).map((r) => { + return [r.title, true]; + }).object().value(); - _(dictionaryLike).each((x) => { - console.log(x.title); - console.log(x.value.toFixed()); - }) - _.values<{title: string, value: number}>(dictionaryLike); + _(dictionaryLike).each((x) => { + console.log(x.title); + console.log(x.value.toFixed()); + }); + + _.values<{title: string, value: number}>(dictionaryLike); }