Apply Javascript styleguide

This commit is contained in:
Jonathan Cremin 2015-08-23 22:12:32 +01:00
parent 752ce964c8
commit 6e0f351093
30 changed files with 364 additions and 375 deletions

View file

@ -2,8 +2,8 @@ import fs from 'fs';
import path from 'path';
function range(start, stop) {
var result = [];
for (var idx = start.charCodeAt(0), end = stop.charCodeAt(0); idx <= end; ++idx){
const result = [];
for (let idx = start.charCodeAt(0), end = stop.charCodeAt(0); idx <= end; ++idx) {
result.push(String.fromCharCode(idx));
}
return result;