Scenario

Approach

import { median } from './median';export class Median {
result: number = undefined;
constructor(arr: number[]) {
this.result = median(arr);
}
}

Demo

  • Easily place the function in a utility library if it’s reused outside of the context of the class.
  • View the class in a more minimal uncluttered form
  • Code tests that are smaller and more focused

Image by Stefan Keller from Pixabay

Image by Bessi from Pixabay


Updated Version

Scenario

control:FormControl = new FormControl('steak-0')
  • Receive reactive notifications from control.valueChanges
  • Have the mat-select default value be steak-0

Approach

import { Component, VERSION } from "@angular/core";
import { FormControl } from "@angular/forms";
interface Food {
value: string;
viewValue: string;
}
@Component({
selector: "my-app",
templateUrl: "./app.component.html"…

Image by Mitchell Raman from Pixabay

Updated Version

Scenario

Approach

import { Component, OnInit } from '@angular/core';
import { SVG } from '@fireflysemantics/assets'
import { Input }…

Image by colbicrook5 from Pixabay

Updated Version

Scenario

  • @fireflysemantics/forecasting
  • @fireflysemantics/optimization

Approach


Image by Jop Verduin from Pixabay

Updated Version

Scenario

Approach

"scripts": {
"ig": "npm install -g @jsdevtools/version-bump-prompt"
}
"scripts": {
...
"bp": "bump patch"
}

Image by GUILHERME BERNARDO from Pixabay

Updated Version

Scenario

export interface ErrorTypes {
[key: string]: string;
}
errorTypes: ErrorTypes = {
NETWORK_ERROR: "Network Error",
DATA_ERROR: "Data Error"
};

Ole Ersoy

Founder of Firefly Semantics Corporation

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store