|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
256 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.default = _default;
|
|---|
| 7 | function _default(range) {
|
|---|
| 8 | var n = range.length;
|
|---|
| 9 | return function (t) {
|
|---|
| 10 | return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];
|
|---|
| 11 | };
|
|---|
| 12 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.