UNPKG

hd-utils

Version:

A handy utils for modern JS developers

6 lines (5 loc) 232 B
/** * @description will return the smallest array in record or object * @example getSmallestArrInObj({a:[1,2,3], b:[1,2,3,4,5]}) => {a:[1,2,3]} */ export default function getSmallestArrInObj(obj: Record<string, any[]> | {}): {};