es-toolkit icon indicating copy to clipboard operation
es-toolkit copied to clipboard

feat(join): add join

Open kim-sung-jee opened this issue 1 year ago • 3 comments
trafficstars

Description

add join function

image

kim-sung-jee avatar Aug 18 '24 13:08 kim-sung-jee

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
es-toolkit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 18, 2024 4:33pm

vercel[bot] avatar Aug 18 '24 13:08 vercel[bot]

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.77%. Comparing base (010ec04) to head (015d5a8). Report is 3 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #392   +/-   ##
=======================================
  Coverage   99.77%   99.77%           
=======================================
  Files         161      162    +1     
  Lines        1323     1325    +2     
  Branches      357      358    +1     
=======================================
+ Hits         1320     1322    +2     
  Misses          2        2           
  Partials        1        1           

codecov-commenter avatar Aug 18 '24 13:08 codecov-commenter

We already have a native api(Array.prototype.join), so I thinks that it needs only in es-toolkit/compat.

dayongkr avatar Aug 19 '24 00:08 dayongkr

I understand that, aside from src/compat, the es-toolkit does not support a join function. Does that seem correct?

kim-sung-jee avatar Aug 19 '24 04:08 kim-sung-jee

You can see a same case in here(es-toolkit/compat/concat).

This function is only available in es-toolkit/compat for compatibility reasons. It either has alternative native JavaScript APIs or isn’t fully optimized yet.

I hope that this information is helpful.

dayongkr avatar Aug 19 '24 04:08 dayongkr

@dayongkr

oh thank you! I'll close the PR.

kim-sung-jee avatar Aug 19 '24 05:08 kim-sung-jee

I think that you don't have to close this PR at now, it is just my opinion.

Maybe, you decide whether close or not after reviewing @raon0211.

Thanks!

dayongkr avatar Aug 19 '24 06:08 dayongkr