(src, sample)
| 112 | |
| 113 | /** @return {?} `undefined` if equal */ |
| 114 | export function deepCopyDiff(src, sample) { |
| 115 | if (src === sample) return; |
| 116 | if (!src || typeof src !== 'object') return src; |
| 117 | if (!sample || typeof sample !== 'object') return deepCopy(src); |
| 118 | deepDiff = false; |
| 119 | src = (Array.isArray(src) ? deepCopyDiffArrays : deepCopyDiffObjects)(src, sample); |
| 120 | if (deepDiff) return src; |
| 121 | } |
| 122 | |
| 123 | function deepCopyDiffArrays(src, sample) { |
| 124 | const res = []; |