Immutable list.
# node
# web
# view source
example/web.ts
import { add } from '@stagas/immutable-list'
const main = document.querySelector('main')!
main.innerHTML = `<h1>1 + 2 = ${add(1, 2)}</h1>`
- TypeScript with SWC
- JSX/TSX out of the box
- Outputs both CommonJS and ES Modules, ready to publish on npm
- Automatic dist bundling using bunzee
- Documentation generation using dokio
- Isomorphic Node.js and real browser testing incl. coverage and snapshots with utr
- Examples / Playground using devito
- Evergreen using pull-configs
- ESLint
- dprint
- Husky
# JSONAble
# List
# createOrReturn
(ctor, prev, key, next)
# getItemInListById
(list, itemId)
# insertItemInListAtIndex
(list, index, newItem)
# removeItemInListById
(list, itemId)
# setItemInListById
(list, itemId, newItem)
# updateItemInListById
(list, itemId, updateData)
- everyday-types by stagas – Everyday utility types
- everyday-utils by stagas – Everyday utilities
All contributions are welcome!