Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
/ sorted-array Public archive

An array that keeps its elements sorted with advanced comparison capabilities and a built-in support for array of objects

License

Notifications You must be signed in to change notification settings

gurisko/sorted-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorted Array

An array that keeps its elements sorted with advanced comparison capabilities and a built-in support for an array of objects.

Installation

npm install @gurisko/sorted-array

API

new SortedArray([key|compareFn])

arr.insert([element1[, ...[, elementN]]])

arr.get(index)

arr.has(value)

arr.search(value)

arr.remove(index)

arr.removeByValue(value)

arr.eq(value)

arr.gt(value)

arr.gte(value)

arr.lt(value)

arr.lte(value)

arr.toArray()

arr.clear()

About

An array that keeps its elements sorted with advanced comparison capabilities and a built-in support for array of objects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published