From 885d5fab83b326a385da47a4433d6099edc1cd0e Mon Sep 17 00:00:00 2001 From: Max Vovk Date: Mon, 7 Oct 2019 23:31:03 +0300 Subject: [PATCH] rm trash code --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 2d16f15..212b5d6 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ const dictionary = require('./dictionary') function transliterationSorting (list, field, languages = 'en_ru') { const vocabruary = getDictionary(languages) const tr = translit(vocabruary) - console.log(list.map(it => ({ ...it, translit: tr(it[field]) })).sort(compare)) + return list.map(it => ({ ...it, translit: tr(it[field]) })).sort(compare) }