Created
September 24, 2014 05:59
-
-
Save laser/6d344305abdbc5dc1714 to your computer and use it in GitHub Desktop.
current messages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var messageWindow = messages.scan([], function(acc, message) { | |
return acc.length === 20 ? [] : acc.concat(message); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment