Frame icon indicating copy to clipboard operation
Frame copied to clipboard

Allow setters to be used for .to and .from methods to allow another alternative syntax.

Open bugs181 opened this issue 6 years ago • 0 comments

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'

bugs181 avatar Jul 24 '19 10:07 bugs181