TS

Getting started with ADSJS in TypeScript.

This guide explains how to use ADSJS in projects with TS support.

This library was designed strictly typed so you'll get many advantages when using it with TypeScript.

To add ADSJS into your project run the following command in terminal (from project directory):

npm install ads-js

Then give it a try in your source code:

import { SinglyLinkedList } from 'ads-js';
// or
import { SinglyLinkedList } from 'ads-js/lists';

const list = new SinglyLinkedList([1, 2, 3]);
const position = list.getLast();

console.log(position.element);

Visit PUBLIC API section to get further details about capabilities of this library.

Last updated

Was this helpful?