(value, key)
| 1162 | } |
| 1163 | |
| 1164 | function numberField(value, key) { |
| 1165 | const obj = record(value); |
| 1166 | const raw = obj && obj[key]; |
| 1167 | const n = typeof raw === 'number' ? raw : (typeof raw === 'string' && raw.trim() ? Number(raw) : NaN); |
| 1168 | return Number.isSafeInteger(n) ? n : undefined; |
| 1169 | } |
| 1170 | |
| 1171 | function sameJson(left, right) { |
| 1172 | return JSON.stringify(left) === JSON.stringify(right); |
no test coverage detected