5 lines
99 B
JavaScript
5 lines
99 B
JavaScript
|
|
const plusMinus = i => Math.ceil(i / 2) * ((2 * ((i + 1) % 2)) - 1);
|
|
|
|
module.exports = plusMinus;
|