reviver.js 282 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 import isObject from './util/isObject'; import typeReviver from './util/typeReviver'; function reviver(key, value) { if (isObject(value)) { const result = typeReviver(value); if (result) { return result.value; } } return value; } export default reviver;