Sha256: d94065382a5ad1d8d3a8ef20f8168ce7f5b864bfae6628eb32f77cc2198e8c4d
Contents?: true
Size: 552 Bytes
Versions: 10
Compression:
Stored size: 552 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
10 entries across 10 versions & 1 rubygems