Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Array & Objects #1

Open
antfu opened this issue Jan 8, 2021 · 1 comment
Open

Support for Array & Objects #1

antfu opened this issue Jan 8, 2021 · 1 comment

Comments

@antfu
Copy link
Member

antfu commented Jan 8, 2021

Support something like

import { map, filter, reduce } from 'vue-chemistry/array'
import { keys, entries, fromEntries } from 'vue-chemistry/object'
@antfu antfu changed the title Array & Objects Support for Array & Objects Jan 8, 2021
@mdbetancourt
Copy link

what you think about

import { chainReaction } from 'vue-chemistry'

const filterValue = ref(6);
const arr = chainReaction([1, 2, 3]).map((it) => it * 3).filter((it) => it > filterValue.value)

console.log(arr) // [9]

filterValue.value = 0
console.log(arr) // [3, 6, 9]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants