comparison src/app/services/feature-extraction/FeatureReducers.ts @ 316:98490d0ceb77

Lint.
author Lucas Thompson <dev@lucas.im>
date Fri, 12 May 2017 17:14:59 +0100
parents dc415a620b15
children c39df81c4dae
comparison
equal deleted inserted replaced
315:78a38043b634 316:98490d0ceb77
1 /** 1 /**
2 * Created by lucast on 26/04/2017. 2 * Created by lucast on 26/04/2017.
3 */ 3 */
4 import {StreamingResponse} from "piper/StreamingService"; 4 import {StreamingResponse} from 'piper/StreamingService';
5 5
6 export const arrayReducer = <T>(acc: T[], val: T[]): T[] => { 6 export const arrayReducer = <T>(acc: T[], val: T[]): T[] => {
7 for (let i = 0, len = val.length; i < len; ++i) { 7 const len = val.length;
8 for (let i = 0; i < len; ++i) {
8 acc.push(val[i]); 9 acc.push(val[i]);
9 } 10 }
10 return acc; 11 return acc;
11 }; 12 };
12 13