wiki/content/20200916172914-ecmascript.md

346 B

date id title
2020-09-16 7fa2a1e8-deae-47f9-83ee-e4f4f84eec16 ECMAScript Modules

Syntax

import ordinal from "ordinal";
import {days, months} from "date-names";

export function formatDate(date, format) { /* ... */ }

Default export

export default ["Winter", "Spring", "Summer", "Autumn"];