Skip to content

Instantly share code, notes, and snippets.

View BigMurry's full-sized avatar
🎯
Focusing

bigmurry BigMurry

🎯
Focusing
  • Localkitty
  • CN
View GitHub Profile
@BigMurry
BigMurry / slim-redux.js
Created March 3, 2016 02:37 — 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])) {