git ssb

1+

Matt McKegg / mutant



Commit 20e4874688b4cc2a7e5dfdbad0fcc957c122dcdc

map: throw early error when lambda not provided

Matt McKegg committed on 2/22/2017, 10:44:55 PM
Parent: 2abf94ac0a2426a4fdd52b784e622a8e3f6645d0

Files changed

map.jschanged
map.jsView
@@ -8,8 +8,10 @@
88
99 function Map (obs, lambda, opts) {
1010 // opts: comparer, maxTime, onRemove
1111
12 + if (typeof lambda !== 'function') throw new Error('mutant/map lambda must be a function')
13 +
1214 var comparer = opts && opts.comparer || null
1315 var releases = []
1416 var binder = LazyWatcher(update, listen, unlisten)
1517

Built with git-ssb-web