Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flamrdevs/propsplit
Split props
https://github.com/flamrdevs/propsplit
component utility
Last synced: about 2 months ago
JSON representation
Split props
- Host: GitHub
- URL: https://github.com/flamrdevs/propsplit
- Owner: flamrdevs
- License: mit
- Created: 2023-08-02T20:39:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-16T01:47:26.000Z (over 1 year ago)
- Last Synced: 2024-11-01T12:36:40.303Z (2 months ago)
- Topics: component, utility
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/propsplit
- Size: 52.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
propsplit
Split props utility
usage
```ts
import propsplit from "propsplit";const props = {
foo: "string",
bar: 1,
baz: true,
other: ["is", "array"],
another: { is: "object" },
};const [foo, bar, baz, rest] = propsplit(props, ["foo"], ["bar"], ["baz"]);
```
license
MIT