Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
arraylist-tn
Advanced tools
# npm
npm install arraylist-tn
# yarn
yarn add arraylist-tn
Please see the list here.
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 ]
FAQs
Java array-list implementation for javascript/typescript 🧬 ..
The npm package arraylist-tn receives a total of 1 weekly downloads. As such, arraylist-tn popularity was classified as not popular.
We found that arraylist-tn demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.