https://github.com/kawarimidoll/deno-join-by
Joins an array of items into a string, using a separator function.
https://github.com/kawarimidoll/deno-join-by
deno deno-module typescript
Last synced: about 2 months ago
JSON representation
Joins an array of items into a string, using a separator function.
- Host: GitHub
- URL: https://github.com/kawarimidoll/deno-join-by
- Owner: kawarimidoll
- License: mit
- Created: 2023-06-03T02:42:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-03T03:08:41.000Z (about 3 years ago)
- Last Synced: 2025-01-14T04:45:37.024Z (over 1 year ago)
- Topics: deno, deno-module, typescript
- Language: TypeScript
- Homepage: https://deno.land/x/join_by/join_by.ts
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deno-join-by
Joins an array of items into a string, using a separator function.
```ts
import { joinBy } from "https://deno.land/x/join_by/join_by.ts"
joinBy([1, 16, 9, 4, 25], (p, c) => p > c ? " > " : " < ");
// "1 < 16 > 9 > 4 < 25"
```