Skip to main content
Module

x/ana_utils/mod.ts

🅰️ Utility functions for Ana
Go to Latest
import * as anaUtils from "https://deno.land/x/ana_utils@v0.0.1/mod.ts";

Functions

Inside Ana, there are interfaces that start with a lowercase i, e.g. iAnaConfiguration. These are input interfaces and have the same properties as their equivalent without the i. So then, what is the difference between each other? All of the properties of an input interface must be optional. Because we can't force the developer to input all properties of a interface every time. In other words, if a developer wants to configure Ana, it shouldn't be a requirement to add all AnaConfiguration properties only to change one of them.

This function emulates the behavior of Array.prototype.map() in Dictionaries. It calls a function passing each entry of the dictionary as an argument.

This function emulates the behavior of Array.prototype.reduce() in Dictionaties. It runs a function that accumulates to a final single value returned.