Optimizations
This commit is contained in:
parent
10015a4ebe
commit
3febd3fca8
24 changed files with 215 additions and 99 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { html } from "../model/misc";
|
||||
import { html, ResponsiveImage } from "../model/misc";
|
||||
|
||||
export const createElement = (from: html): HTMLElement => {
|
||||
const element: HTMLElement = document.createElement("div");
|
||||
|
|
@ -88,3 +88,6 @@ export const range = ({
|
|||
}
|
||||
};
|
||||
};
|
||||
|
||||
export const last = <T>(list: Array<T>): T =>
|
||||
list.length > 0 ? list[list.length - 1] : undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue