v0.7
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/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 }
Module host
- Code also available at deno.land
References
Authors
- Eric Madureira
- Sebastian Lozano