Skip to content

Commit 473f1a0

Browse files
committed
Use flatMap instead of map and flat, lint fix
1 parent 17367f6 commit 473f1a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function createHelpersNamespaceObject(helpers, options_ = {}) {
44
const { comparator, ...defaults } = { __proto__: null, ...options_ }
55
const helperNames = Object.keys(helpers).sort()
66
const propNames = [
7-
...new Set(Object.values(helpers).map(Object.keys).flat())
7+
...new Set(Object.values(helpers).flatMap(Object.keys))
88
].sort(comparator)
99
const nsObject = Object.create(null)
1010
for (let i = 0, { length } = propNames; i < length; i += 1) {

0 commit comments

Comments
 (0)