Skip to content

Commit

Permalink
refactor: use an object spread instead of Object.assign in filters (#…
Browse files Browse the repository at this point in the history
…1276)

Co-authored-by: Lukasz Gornicki <[email protected]>
  • Loading branch information
rishabhr4 and derberg authored Oct 8, 2024
1 parent a3460a5 commit 2feefdc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/nunjucks-filters/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const customFilters = require('./customFilters');
const lodashFilters = require('./lodashFilters');

module.exports = Object.assign({}, lodashFilters, customFilters);
module.exports = {
...lodashFilters,
...customFilters};

0 comments on commit 2feefdc

Please sign in to comment.