Skip to content

Latest commit

 

History

History
91 lines (68 loc) · 3.53 KB

README.md

File metadata and controls

91 lines (68 loc) · 3.53 KB

jsmodern

An extension to existing JavaScript, influenced by other great languages such as Rust, Dart, Java, Golang, etc.


MIT License

A collections of extensions for JavaScript that borrow some of the useful features from other programming languages.

Table of contents

Usage

// It is recommended to only import those extensions you need instead of everything.
import { extend } from "https://cdn.jsdelivr.net/gh/motss/[email protected]/jsmodern/extend.ts";
import { sum } from "https://cdn.jsdelivr.net/gh/motss/[email protected]/jsmodern/array.ts";

extend({ array: [sum] });

const total = [1, 2, 3].sum();

console.log(total === 6); // true

API Reference

License

MIT License © Rong Sen Ng