UNPKG

redux

Version:

Atomic Flux with hot reloading

15 lines (12 loc) 281 B
"use strict"; exports.__esModule = true; exports["default"] = pick; function pick(obj, fn) { return Object.keys(obj).reduce(function (result, key) { if (fn(obj[key])) { result[key] = obj[key]; } return result; }, {}); } module.exports = exports["default"];