@seala/ranges
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

range

import { Ranges } from "@seala/ranges";

const range = new Ranges({
  key1: [
    { min: 0, max: 100 },
    { min: 100, max: 300 },
    { min: 300, max: 500 },
  ],
  key2: [
    { min: 0, max: 200 },
    { min: 200, max: 400 },
    { min: 400, max: 500 },
  ],
});

range.getAffect("key1", 50, 150);

range.getData("key1", 50, 150);

Readme

Keywords

none

Package Sidebar

Install

npm i @seala/ranges

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

8.49 kB

Total Files

8

Last publish

Collaborators

  • vaseala