Skip to content

Instantly share code, notes, and snippets.

View macjabeth's full-sized avatar
💭
Game 🎮 Snuggle 🐶 Code ✨

Jonathan Picazo macjabeth

💭
Game 🎮 Snuggle 🐶 Code ✨
View GitHub Profile
@macjabeth
macjabeth / filter.js
Created May 23, 2019 05:07
Examples written for my students.
function filter(arr, func) {
const res = [];
for (const val of arr) {
if (func(val)) {
res.push(val);
}
}
return res;