Reapplied all the eslint upgrade changes

This commit is contained in:
Filip Barl
2016-12-13 17:58:32 +01:00
parent bbcf184031
commit 26b3e9efc9
71 changed files with 638 additions and 504 deletions

View File

@@ -1,11 +1,11 @@
import _ from 'lodash';
import { range } from 'lodash';
export function uniformSelect(array, size) {
if (size > array.length) {
return array;
}
return _.range(size).map(index =>
array[parseInt(index * array.length / (size - 1 + 1e-9), 10)]
return range(size).map(index =>
array[parseInt(index * (array.length / (size - (1 - 1e-9))), 10)]
);
}