fix split

This commit is contained in:
yiminghe 2016-06-23 10:57:52 +08:00
parent 695c26c859
commit be95d3fc23

View File

@ -5,7 +5,7 @@ export default function splitObject(obj, parts) {
if (parts.indexOf(k) !== -1) {
left[k] = obj[k];
} else {
right = obj[k];
right[k] = obj[k];
}
});
return [left, right];