Comments (2)
it seems like the "wrong" overload of Object.values
is chosen, from lib.es2017.object.d.ts
:
values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];
values(o: {}): any[];
not sure if we can do something about this, I tried the most minimal example:
const test = pipe(
['one', 'two', 'three'],
Object.values
)
and test
is Array<any>
here, too. The types should flow through pipe, so I'm sure adding an Object.values
as well as an Object.keys
equivalent to remeda should work. Do you want to give it a try?
from remeda.
I would love to.
How should I go about it? Is there a sort of guide? I've never contributed to something like this before.
from remeda.
Related Issues (20)
- The sample function doesn't seem to infer types correctly HOT 1
- Helper to check if all object values are Truthy? HOT 2
- Pipe item not receiving guarded value? HOT 4
- I cannot understand doc for sortBy HOT 3
- Feature Request: swap element in Array HOT 1
- Nested object to object of key tuples HOT 1
- it would be cool if it works HOT 4
- Generate testing suites using a ChatGPT-4 CLI wrapper HOT 1
- lint for correctness HOT 1
- `filterValues` for filtering objects HOT 2
- Unexpected `dropLast` behavior with negative `n`. HOT 2
- `equals` and recursive structures leads to `Maximum call stack size exceeded` HOT 5
- Request for new binary search based indexing functions HOT 5
- Problem with `mapValues` types HOT 6
- `pathOr` has broken types HOT 11
- feature request: xor HOT 2
- feature request: append HOT 2
- `sort` should support a list of comparators HOT 5
- isEmpty doesn't accept falsy input HOT 9
- Add lazy version for compact HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remeda.