indiana-university / conduit

A JavaScript library for architecting user interfaces with RxJS and React.
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

Create object map operator #4 #2

Open basham opened 5 years ago

basham commented 5 years ago

csbasham opened this issue on Feb 22, 2017


This would be a low-level function that given an object, do a transformation on it. This would be used within most lib methods. Something like:

// conduit-rxjs/lib/bindNext
import {mapObject} from './mapObject';

export function bindNext(source) {
  // if is object...
  return mapObject(source, function mapValue(value, key) {...}, function mapKey(value, key) {...});
}
basham commented 5 years ago

csbasham commented on Feb 22, 2017


Could also just use lodash functions, as either inspiration or as a dependency. But I don't know if I want anything other than rxjs to be a peer dependency.

basham commented 5 years ago

anderjak commented on Feb 28, 2017


I agree with preferring only rxjs peer dependency.