Add degreesToRads and radsToDegrees

This commit is contained in:
Angelos Chalaris
2018-02-14 12:24:50 +02:00
parent d351fc3fe6
commit ed5e4e3398
11 changed files with 77 additions and 12 deletions

View File

@ -1,6 +1,3 @@
const bifurcateBy = (arr, fn) =>
arr.reduce((acc, val, i) => (acc[fn(val, i) ? 0 : 1].push(val), acc), [
[],
[],
]);
arr.reduce((acc, val, i) => (acc[fn(val, i) ? 0 : 1].push(val), acc), [[], []]);
module.exports = bifurcateBy;