(pred)
| 4376 | //. Just ([1, 2, 3]) |
| 4377 | //. ``` |
| 4378 | function parseJson(pred) { |
| 4379 | return B (filter (pred)) (B (eitherToMaybe) (encase (JSON.parse))); |
| 4380 | } |
| 4381 | _.parseJson = { |
| 4382 | consts: {}, |
| 4383 | types: [$.Predicate ($.Any), $.String, $.Maybe (a)], |