UNPKG

json-merge-patch

Version:
6 lines (4 loc) 144 B
'use strict'; module.exports.serialize = function(value) { return (value && typeof value.toJSON === 'function') ? value.toJSON() : value; };