This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function toDollar(n) { | |
| const numWithCommas = n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); | |
| return `$${numWithCommas}`; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const keyBy = (arr, objKey) => arr.reduce( | |
| (acc, cur) => ( | |
| { ...acc, [cur[objKey]]: cur } | |
| ), {}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Have you worked in an agile or scrum environment? Tell us about your experience. | |
| Have you lead teams before and if so what is your approach to leadership? | |
| What do you expect from a team that you are apart of? | |
| Any experience pair programming? | |
| What is your biggest strength you can contribute to a team? | |
| What is a recent technical challenge you experienced and how did you solve it? | |
| How are you keeping up with the latest developments in web development? | |
| Design vs. Implementation what is your process? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const groupBy = (array, groupKey) => { | |
| return array.reduce((acc, cur) => { | |
| if (acc[cur[groupKey]]) { | |
| acc[cur[groupKey]].push(cur); | |
| } else { | |
| acc[cur[groupKey]] = [cur]; | |
| } | |
| return acc; | |
| }, {}); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const celsius = [-15, -5, 0, 10, 16, 20, 24, 32]; | |
| const fahrenheit = celsius.map(t => t * 1.8 + 32); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const valuesMatch = (sourceObj, matchObj) => { | |
| let matches = true; | |
| Object.keys(matchObj).forEach(matchKey => { | |
| if (sourceObj[matchKey] !== matchObj[matchKey]) { | |
| matches = false; | |
| } | |
| }); | |
| return matches; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # VARIABLES ========== | |
| defaultCommitMessage="Add all changed files." | |
| # FUNCTIONS ========== | |
| gitAddAllAndCommit() { | |
| git add . && git commit -m "${1:-defaultCommitMessage}" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const pickRandom = (arr) => arr[Math.floor(Math.random() * arr.length)]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const toConstant = (str: string): string => str.replace(/\s+/g, '_').toUpperCase(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import upperFirst from 'lodash/upperFirst'; | |
| import camelCase from 'lodash/camelCase'; | |
| export function toPascalCase(srcString: string): string { | |
| return upperFirst(camelCase(srcString)); | |
| }; |