Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
// Bacon.sequentially gives the values in the array with a delay 
// specified by the first parameter in ms
var originalStream = Bacon.sequentially(100, [1, -6, -24, 666])
originalStream.log("Original")
// Create a stream with every number increased by 20
var increasedStream = //...
    
increasedStream.log("Increased")
// Create a stream with only the positive numbers of originalStream
var positiveStream = // ...
    
positiveStream.log("Positive")
// Create a stream which tell if the numbers in originalStream are positive (true) or negative(false)
var signStream = // ...
signStream.log("Sign")
// Combine .map and .filter to make your own streams
Console

    You can jump to the latest bin by adding /latest to your URL

    Dismiss x
    public
    Bin info
    anonymouspro
    0viewers