Skip to content

๊ถ๊ธˆ์ฆ ํ•ด๊ฒฐ์†Œย #510

Description

@areumsheep

๋ฌธ์ œ๋ฅผ ํ’€๋‹ค๊ฐ€ map๊ณผ for๋ฌธ ์ค‘ ์–ด๋–ค ๊ฒƒ์ด ๋” ์†๋„๊ฐ€ ๋น ๋ฅผ๊นŒ? ํ•˜๋Š” ๊ณ ๋ฏผ๋“ค์„ ํ•ด๋ณด์‹  ์ ์ด ์žˆ์œผ์‹ ๊ฐ€์š”?

์‚ฌ์†Œํ•œ ๊ถ๊ธˆ์ฆ์ด์ง€๋งŒ ์ง์ ‘ ํ•ด๊ฒฐํ–ˆ๋‹ค๋Š” ๋ฟŒ๋“ฏํ•จ์„ ๋‚˜๋ˆ ์ฃผ์„ธ์š”! ์ž์‹ ๋งŒ์˜ ์˜๊ฒฌ์ด ๊ฐ€๋“ ๋‹ด๊ธด ๋‚ด์šฉ๋„ ์ข‹์•„์š”!
๋„ˆ๋ฌด ์–ด๋ ค์šด ๊ถ๊ธˆ์ฆ์ด๋ผ๋ฉด ๋„์›€์„ ์š”์ฒญํ•ด๋ณด์„ธ์š”!

๋‹ค์–‘ํ•œ ๊ณ ๋ฏผ๋“ค์ด ์Œ“์—ฌ ์ข‹์€ ์‹œ๋„ˆ์ง€๋ฅผ ๋‚ผ ์ˆ˜ ์žˆ์„๊ฑฐ์˜ˆ์š” :) ๐Ÿฅณ


์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ์†๋„ ํ…Œ์ŠคํŠธ ๋ฐฉ๋ฒ• ์˜ˆ์‹œ

console.time() & console.timeEnd()
https://developer.mozilla.org/en-US/docs/Web/API/console/time

console.time('replace_test');
test_str.replace(/1/g, '#').replace(/0/g, ' ');
console.timeEnd('replace_test');

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions