Skip to content

Instantly share code, notes, and snippets.

View magfurulabeer's full-sized avatar

Magfurul Abeer magfurulabeer

View GitHub Profile
##Magfurul Abeer
176 Wheeler Ave
Staten Island, NY 10314
(917) 601 - 5663
[email protected]
@magfurulabeer
magfurulabeer / slim-redux.js
Created November 15, 2017 20:20 — forked from gaearon/slim-redux.js
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {

Videos