0.0.2 • Published 1 year ago

saco-js v0.0.2

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
1 year ago

saco-js lint and test deno Deploy static content to Pages lint and test with node

A bag-like data structure in JavaScript created to be compatible with node as well as deno

Documentation/Reference

Check the auto-generated reference. Create a local copy by doing

npm i -g jsdoc
# or
npm i
# and then
npm run doc

This will generate documentation in the doc directory.

Example

import { sacoUnion, sacoIntersection } from "../index.js"; // Use published URL instead

const unSaco = { a: 3, b: 1 };
const otroSaco = { a: 1, b: 3 };

console.log(sacoUnion(unSaco, otroSaco)); // { a: 4, b: 4 }
console.log(sacoIntersection(unSaco, otroSaco)); // { a: 1, b:1 }

Or run

deno run examples/basic.js

from this directory

0.0.2

1 year ago