implement reactjs history

This commit is contained in:
Eric Hulburd
2016-03-04 13:59:34 -06:00
parent 5b218f6518
commit aa885f331c
27 changed files with 549 additions and 546 deletions

12
shared/utils/object.js Normal file
View File

@@ -0,0 +1,12 @@
class ObjectUtil {
static filterKeys(obj, keys){
return Object.keys(obj).reduce((filtered, key)=>{
if (keys.indexOf(key) >= 0) filtered[key] = obj[key]
return filtered;
}, {});
}
}
export default ObjectUtil;