Skip to content

Latest commit

 

History

History

bits

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

mauss/bits

import { :util } from 'mauss/bits';

find

A namespace with generic methods to help find items in an (sometimes sorted) array.

find.binary

do a binary search on a sorted array with custom item checking and cutoff function.

find.minmax

find the minimum and maximum value in an array of numbers.

const [min, max] = minmax([0, 1, 2, 3, 4, 5]);
// min = 0, max = 5