Frame
Frame copied to clipboard
Allow setters to be used for .to and .from methods to allow another alternative syntax.
Example:
// Can be a function
Message.from = function(data, props, cb) {}
// Can be an arrow function
Message.from = (data, _, cb) => cb()
// Can be a Blueprint module
Message.from = Slack
// Can be a primitive value
Message.from = 'Something'