Sudoo-Digest

Build Status codecov npm version downloads

Digest Utils

Install

yarn add @sudoo/digest
# Or
npm install @sudoo/digest --save

Usage

Digest Numeric Range

import { digestNumericRange } from "@sudoo/digest";

const result: DigestNumericRangeResult = digestNumericRange([
    1, 2, 3, 5, 6, 8,
]); // [1-3, 5-6, 8]