## JavaScript Algorithms

The JavaScript algorithms collection includes implementations and examples of popular algorithms in ES6. Algorithmic snippets are primarily a learning resource, as they might already be implemented natively or require optimizations to run in production.

Creates an array of numbers in the arithmetic progression, starting with the given positive integer and up to the specified limit.

Finds the index of a given element in a sorted array using the binary search algorithm.

Calculates the number of ways to choose

`k`

items from`n`

items without repetition and without order.Sorts an array of numbers, using the bubble sort algorithm.

Encrypts or decrypts a given string using the Caesar cipher.

Counts the occurrences of a substring in a given string.

Calculates the distance between two points.

Calculates the factorial of a number.

Checks if the provided integer is a prime number.

Finds the first index of a given element in an array using the linear search algorithm.

Returns the powerset of a given array of numbers.

Finds the prime factors of a given number using the trial division algorithm.

Calculates the distance between two vectors.

Sorts an array of numbers, using the bucket sort algorithm.

Calculates the distance between two points in any number of dimensions.