show dbs
This file contains 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
// running the function with `objectA` and `expectedKeys` | |
// should return `true` | |
const objectA = { | |
id: 2, | |
name: 'Jane Doe', | |
age: 34, | |
city: 'Chicago', | |
}; | |
// running the function with `objectB` and `expectedKeys` |
This file contains 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
// you can pass in `scratchData` to test out `findByid` | |
// your function | |
const scratchData = [ | |
{ id: 22, foo: 'bar' }, | |
{ id: 28, foo: 'bizz' }, | |
{ id: 19, foo: 'bazz' }, | |
]; | |
function findById(items, idNum) { | |
return items.find(item => item.id === idNum); |
This file contains 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 makeStudentsReport(data) { | |
let report = []; | |
for (i = 0; i < data.length; i++) { | |
let student = data[i]; | |
report.push(`${student.name}: ${student.grade}`); | |
} | |
return report; | |
} | |
/* From here down, you are not expected to |
This file contains 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 users = [ | |
{ | |
name: 'Bernard', | |
age: 29, | |
birthMonth: 'April', | |
}, | |
{ | |
name: 'Bernice', | |
age: 14, | |
birthMonth: 'December', |
This file contains 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
Industry | ||
---|---|---|
Accounting | ||
Airlines/Aviation | ||
Alternative Dispute Resolution | ||
Alternative Medicine | ||
Animation | ||
Apparel/Fashion | ||
Architecture/Planning | ||
Arts/Crafts | ||
Automotive |
This file contains 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
alias editbash='vim ~/.bashrc' | |
alias updatebash='source ~/.bashrc' | |
alias ls='ls -alC --color=auto' | |
function search (){ | |
egrep -roiI $1 . | sort | uniq | |
} | |
function whereis (){ | |
find . -name "$1*"; |