You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

arraylist-tn

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arraylist-tn

Java array-list implementation for javascript/typescript 🧬 ..


Version published
Weekly downloads
13
increased by116.67%
Maintainers
1
Install size
18.1 kB
Created
Weekly downloads
 

Readme

Source

ARRAYLIST-TN


Build Status   Coverage Status

You can now use the arraylist in your TypeScript and JavaScript code easily.

Installation


# npm
npm install arraylist-tn
# yarn
yarn add arraylist-tn

Usage


You can use this module like ArrayList in the JAVA .. you don't need to change any thing ..

Support Methods


Please see the list here.

Example


This is a basic example or follow all test cases here:

const ArrayList = require("arraylist-tn"); // || const { ArrayList } = require ('arraylist-tn');

const myList = new ArrayList();
myList.add("imed jaberi");
console.log(myList.getAll()); // [ 'imed jaberi' ]
myList.addAll(["nodejs", "js-lover", "tunisia", "red", "CA"]);
console.log(myList.getAll()); // [ 'imed jaberi', 'nodejs', 'js-lover', 'tunisia', 'red', 'CA' ]
myList.remove(4);
console.log(myList.getAll()); // [ 'imed jaberi', 'nodejs', 'js-lover', 'tunisia', 'CA' ]
console.log(myList.size()); // 5
console.log(myList.contains("CA")); // true
console.log(myList.isEmpty()); // false
myList.removeAll();
myList.addAll([100, 50, -50, 0, -100]);
myList.sort(); // you can add "asc" as params
console.log(myList.getAll()); // [ -100, -50, 0, 50, 100 ]
myList.sort("desc");
console.log(myList.getAll()); // [ 100, 50, 0, -50, -100 ]
License

MIT © Imed Jaberi

Keywords

FAQs

Package last updated on 20 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc