0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-27 22:19:04 -05:00
astro/examples/with-nanostores/src/store/admins.js
Nate Moore 7063c04dec
Restructure examples (#568)
* rename kitchen sink, pull out react example

* split out the rest of the examples

* align versions

* chore: rename examples

* chore: normalize gitignore

* chore: update package versions

* chore: move framework examples to `framework` namespace

* docs: add README to examples

Co-authored-by: Austin Crim <crim.austin@principal.com>
2021-06-28 10:46:10 -05:00

7 lines
186 B
JavaScript

import { createDerived } from 'nanostores';
import { users } from './users.js';
const admins = createDerived(users, (list) => list.filter((user) => user.isAdmin));
export { admins };