UNPKG

fake-npm-package

Version:
42 lines (37 loc) 973 B
const fake = { flipTable: flipTable(), surprise: surprise(), best: best(), } function flipTable() { return "(╯°□°)╯︵ ┻━┻)" } function surprise() { return "(⊙ˍ⊙)" } function best() { return "My Wife!" } // function countValueInWord (word, value) { // let count = 0; // array = word.split('') // array.forEach((v) => (v === value && count++)); // return count; // } // // First k Non-Repeating Characters // function FindNonRepeatingChars(word, number) { // const res = [] // const answer = [] // for (let index = 0; index < word.length; index++) { // if (countValueInWord(word, word.charAt(index)) === 1) { // res.push(word.charAt(index)) // } // } // for (let index = 0; index < number; index++) { // const element = res[index]; // answer.push(element) // } // return answer // } 'use strict' module.exports = fake