Skip to content

Instantly share code, notes, and snippets.

View nickells's full-sized avatar
🤷‍♂️
git

Nick Elʪworth nickells

🤷‍♂️
git
View GitHub Profile
@nickells
nickells / filter-by-iteratee.js
Last active May 14, 2018 13:11
Transpiled FilterByIteratee
"use strict";
// Function definition
var filterByIteratee = function filterByIteratee(array, iteratee) {
// Empty object to store attributes as we encounter them
var previousAttributeNames = {};
return array.filter(function (item) {
// Get the right value