Sha256: 673682e85d7a06a45ed18fbb4714336b96a8d2009d40b998dc032b416c204400
Contents?: true
Size: 551 Bytes
Versions: 37
Compression:
Stored size: 551 Bytes
Contents
var NutellaMixin = { getChannelsForRid: function(message, rid) { var myChannelsId = []; var myChannels = []; message.forEach(function(f) { for (var i in f.items) { var item = f.items[i]; if (item.name === 'iPad1') { myChannelsId = item.channels; break; } } }); myChannelsId.forEach(function(id) { myChannels.push(CHANNELS[id]); }); } }; module.exports = NutellaMixin;
Version data entries
37 entries across 37 versions & 1 rubygems