Skip to content

refactor(core): modify getStringFromFormat for immutable#174

Open
sunrabbit123 wants to merge 1 commit into
lunariajs:mainfrom
sunrabbit123:patch-1
Open

refactor(core): modify getStringFromFormat for immutable#174
sunrabbit123 wants to merge 1 commit into
lunariajs:mainfrom
sunrabbit123:patch-1

Conversation

@sunrabbit123
Copy link
Copy Markdown

Description

This pull request refactors the getStringFromFormat function in packages/core/src/utils.ts to improve its readability and performance by replacing the forEach loop with a reduce function.

Codebase improvement:

  • packages/core/src/utils.ts: Refactored the getStringFromFormat function to use reduce instead of forEach, streamlining the code and potentially improving performance by reducing intermediate variable assignments.

Signed-off-by: sunrabbit123 <qudwls185@naver.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 13, 2025

Deploy Preview for lunariajs ready!

Name Link
🔨 Latest commit f026e53
🔍 Latest deploy log https://app.netlify.com/projects/lunariajs/deploys/684bcaf31d4a920008ba7936
😎 Deploy Preview https://deploy-preview-174--lunariajs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the core Changes to the @lunariajs/core package label Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Changes to the @lunariajs/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant