MCPcopy
hub / github.com/sanctuary-js/sanctuary / parseJson

Function parseJson

index.js:4378–4380  ·  view source on GitHub ↗
(pred)

Source from the content-addressed store, hash-verified

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)],

Callers

nothing calls this directly

Calls 3

BFunction · 0.85
filterFunction · 0.85
encaseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…