was.js – Diff between revs 20 and 21
?pathlinks?
Rev 20 | Rev 21 | |||
---|---|---|---|---|
Line 52... | Line 52... | |||
52 | } |
52 | } |
|
53 | }); |
53 | }); |
|
54 | } |
54 | } |
|
55 | }); |
55 | }); |
|
56 | // Node.JS |
56 | // Node.JS |
|
57 | exports.switch = function(q, d, ...c) { |
57 | module.exports.switch = function(q, d, ...c) { |
|
58 | if(c.length % 2 !== 0) { |
58 | if(c.length % 2 !== 0) { |
|
59 | throw "Pairs of predicates expected for cases"; |
59 | throw "Pairs of predicates expected for cases"; |
|
60 | } |
60 | } |
|
Line 61... | Line 61... | |||
61 | |
61 | |