Skip to content
Advertisement

Tag: collections

Sorted (ordered) collection for JavaScript

I’m looking for sorted container for JavaScript. I’m using C++ std::set, https://en.cppreference.com/w/cpp/container/set and try porting my code to JavaScript. JavaScript Map is not ordered container. I need some ordered container. I don’t need completely compatible container of std::set on C++. My requirements are Custom comparator support Automatically sorted Find the specific value. If value is not found, get the next

Advertisement