diff --git a/stream/map.js b/stream/map.js new file mode 100644 index 00000000..4d1a8b2f --- /dev/null +++ b/stream/map.js @@ -0,0 +1,3 @@ +module.exports = function(object, callback) { + return object["fantasy-land/map"](callback) +} \ No newline at end of file diff --git a/stream/scan-merge.js b/stream/scan-merge.js index c0a0628e..6601c366 100644 --- a/stream/scan-merge.js +++ b/stream/scan-merge.js @@ -1,7 +1,7 @@ //! adapted for mithril from flyd https://github.com/paldepind/flyd -'use strict' +"use strict" -var combine = require('../stream').combine +var combine = require("../stream").combine module.exports = function (tuples, seed) { var streams = tuples.map(function (tuple) { diff --git a/stream/scan.js b/stream/scan.js index 4f65736e..3a8f81ad 100644 --- a/stream/scan.js +++ b/stream/scan.js @@ -1,7 +1,7 @@ //! adapted for mithril from flyd https://github.com/paldepind/flyd -'use strict' +"use strict" -var combine = require('../stream').combine +var combine = require("../stream").combine module.exports = function (reducer, seed, stream) { var newStream = combine(function (s) {