csFlip.js (356B)
1 "use strict"; 2 3 Object.defineProperty(exports, "__esModule", { 4 value: true 5 }); 6 exports.csFlip = csFlip; 7 8 /** 9 * This function "flips" its input about the integer -1. 10 * 11 * @param {Number} i The value to flip 12 * 13 * Reference: http://faculty.cse.tamu.edu/davis/publications.html 14 */ 15 function csFlip(i) { 16 // flip the value 17 return -i - 2; 18 }