0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-24 22:46:02 -05:00
astro/examples/astro-nanostores/src/store/admins.js
Agustin Mulet 81c01d121f
Added example of Astro usage with nanostores (#539)
* Adding astro-nanostores example

* Changed package name and removed lock file
2021-06-24 17:39:17 -05:00

11 lines
No EOL
182 B
JavaScript

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