We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1c14e4 commit 8229361Copy full SHA for 8229361
src/types/object/serialize.js
@@ -12,6 +12,7 @@ import { compareNodes } from './sort.js'
12
// Serialize from `nodes` to a `object` permission.
13
// Never serialize to `all` category so make output more predictable.
14
export const serialize = (nodes) => {
15
+ // eslint-disable-next-line fp/no-mutating-methods
16
const nodesA = nodes.map(serializeNode).sort(compareNodes)
17
const object = groupBy(nodesA, 'category')
18
const objectA = mapValues(object, mergePerms)
0 commit comments