Skip to content

Latest commit

 

History

History

jsmodern

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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