From 2feefdc1e535690bb44419f2823b204fc8329269 Mon Sep 17 00:00:00 2001 From: rishabhr4 <118053976+rishabhr4@users.noreply.github.com> Date: Tue, 8 Oct 2024 21:34:28 +0530 Subject: [PATCH] refactor: use an object spread instead of `Object.assign` in filters (#1276) Co-authored-by: Lukasz Gornicki --- apps/nunjucks-filters/src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/nunjucks-filters/src/index.js b/apps/nunjucks-filters/src/index.js index c986644ae..4b0ea87f9 100644 --- a/apps/nunjucks-filters/src/index.js +++ b/apps/nunjucks-filters/src/index.js @@ -1,4 +1,6 @@ const customFilters = require('./customFilters'); const lodashFilters = require('./lodashFilters'); -module.exports = Object.assign({}, lodashFilters, customFilters); \ No newline at end of file +module.exports = { + ...lodashFilters, + ...customFilters}; \ No newline at end of file