(obj)
| 87 | } |
| 88 | |
| 89 | export function sortByKey (obj) { |
| 90 | if (!obj) { |
| 91 | return {}; |
| 92 | } |
| 93 | |
| 94 | let newObj = {}; |
| 95 | Object.keys(obj).sort().forEach((key) => { |
| 96 | newObj[key] = obj[key]; |
| 97 | }); |
| 98 | |
| 99 | return newObj; |
| 100 | } |
| 101 | |
| 102 | export function shallowEqual(objA, objB) { |
| 103 | if (objA === objB) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…