kodadot / kodadot/packages

HyperCasual utils

Open
#155 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4
Forks
11
PR merge metrics
No merged PRs in 30d

Description

```ts
const isFunction = (fn: any): boolean => typeof fn === 'function'
```

```ts
const groupBy = (xs: any[], key: string) => {
return xs.reduce((rv, x) => {
(rv[x[key]] = rv[x[key]] || []).push(x)
return rv
}, {})
}
```

```ts
const shortAddress = (address: string): string => {
if (address) {
return `${address.slice(0, 6)}...${address.slice(-6)}`
}
return ''
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by searching the TypeScript packages monorepo for the appropriate utility module and any existing exports or tests. Confirm where shared helpers belong, then add the requested utilities and verify that the relevant package exposes them and its checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.