Javascript

Generate an array of alphabet characters

This function generates an array of alphabet characters from ‘a’ to ‘z’. JavaScript: TypeScript:

Create cartesian product

This function generates the cartesian product of two arrays. JavaScript: TypeScript:

Get the average of an array

This function calculates the average of all the numbers in an array. JavaScript: TypeScript:

Count by the properties of an array of objects

This function counts the number of objects in an array that have a specified property value. JavaScript: TypeScript:

Get the intersection of arrays

This function returns an array that contains the common elements of two or more arrays. JavaScript: TypeScript:

Find the index of the last matching item of an array

This function finds the index of the last occurrence of a specified value in an array. JavaScript: TypeScript:

Find the index of the minimum item of an array

This function finds the index of the smallest number in an array. JavaScript: TypeScript:

Find the length of the longest string in an array

This function finds the length of the longest string in an array. JavaScript: TypeScript:

Find the minimum item of an array by given key

This function finds the smallest number in an array of objects, based on a specified key. JavaScript: TypeScript:

Find the index of the maximum item of an array

This function finds the index of the largest number in an array. JavaScript: TypeScript: