v0.6
Hackweek Project - Eric & Sebastian
Repository
Current version released
3 years ago
Versions
learning_deno
How to use
Add this to your deps file:
export {default as learnDeno } from "https://deno.land/x/learning_deno@v0.5/mod.ts";
Once in your app use it like this:
import { learnDeno } from "./dep.ts";
interface Object {
shape: string;
type: string;
size: number;
emote: string;
}
const objects: Object[] = [
{
shape: "car",
type: "vehicle",
size: 12,
emote: "๐"
},
{
shape: "circle",
type: "geometric",
size: 6,
emote: "๐ด"
},
{
shape: "triangle",
type: "geometric",
size: 5,
emote: "๐บ"
}, {
shape: "square",
type: "geometric",
size: 7,
emote: "๐ฅ"
}
];
const objectGroups = learnDeno.countBy(objects, 'type'); // Output: {geometric: 3, vehicle: 1 }
References
- https://dev.to/brunnerlivio/create-your-first-module-with-deno-575k
- https://dev.to/craigmorten/how-to-publish-deno-modules-2cg6
Authors
- Eric Madureira
- Sebastian Lozano