1 | function isEmptyObject (x) {
|
2 | return typeof x === 'object' && Object.getOwnPropertyNames(x).length === 0
|
3 | }
|
4 |
|
5 | function arraysAreDifferent (list1, list2) {
|
6 | return JSON.stringify(list1) !== JSON.stringify(list2)
|
7 | }
|
8 |
|
9 | module.exports = { isEmptyObject, arraysAreDifferent }
|