src/lib/message.js
function PartiallyAppliedMessage(underlyingMessage, payload) {

  function message(...otherPayloads) {
    return underlyingMessage.apply(null, [payload, ...otherPayloads])
  }

  message.type = 'partiallyAppliedMessage'

  message._id = underlyingMessage._id
  message._name = underlyingMessage._name
  message._isMessage = true

  message.with = withPayload

  // Used for VDOM Diffing (See util/shallowEqual)
  message.payload = payload

  return message
}
function PartiallyAppliedMessage(underlyingMessage, payload) {

  function message(...otherPayloads) {
    return underlyingMessage.apply(null, [payload, ...otherPayloads])
  }

  message.type = 'partiallyAppliedMessage'

  message._id = underlyingMessage._id
  message._name = underlyingMessage._name
  message._isMessage = true

  message.with = withPayload

  // Used for VDOM Diffing (See util/shallowEqual)
  message.payload = payload

  return message
}
function PartiallyAppliedMessage ( underlyingMessage , payload ) { function message ( ... otherPayloads ) { return underlyingMessage . apply ( null , [ payload , ... otherPayloads ] ) } message . type = 'partiallyAppliedMessage' message . _id = underlyingMessage . _id message . _name = underlyingMessage . _name message . _isMessage = true message . with = withPayload // Used for VDOM Diffing (See util/shallowEqual) message . payload = payload return message }
Creates a new Message type that is partially applied with a payload
Creates a new Message type that is partially applied with a payload