Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
201flaviosilva committed Dec 14, 2022
1 parent 855478c commit 4bda3e4
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Vanilla/build/utils.min.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/Vanilla/build/utils.min.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions lib/Vanilla/types/Maths/divideEvenly.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,12 @@
* @memberof Maths
*/
export function divideEvenly(min?: number, max?: number, numberDivisions?: number): number[];
/**
*
* @example divideEvenlyWithSpread(10, 5); // [-5, -3.888888888888889, -2.7777777777777777, -1.6666666666666665, -0.5555555555555554, 0.5555555555555554, 1.666666666666667, 2.7777777777777777, 3.8888888888888893, 5]
*
* @param {number} numberDivisions
* @param {number} spread
* @returns {number[]} An array of evenly spaced numbers.
*/
export function divideEvenlyWithSpread(numberDivisions?: number, spread?: number): number[];
13 changes: 12 additions & 1 deletion lib/Vanilla/types/choiceTrend.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
declare function choiceTrend(options?: number[]): void;
/**
* This function will return the index of the random selected item of a array based in the passed probably
*
* @example choiceTrend([0.25, 0.5, 0.25]); // 1
* @example choiceTrend([0.5, 0.5]); // 0
* @example choiceTrend([0.1, 0.9]); // 1
* @example choiceTrend([0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1]); // 7
*
* @param {number[]} options
* @returns {number} returns the index of the selected
*/
export function choiceTrend(options?: number[]): number;
1 change: 1 addition & 0 deletions lib/Vanilla/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { allCharactersSame } from "./allCharactersSame.js";
import { binary2Decimal } from "./binary2Decimal.js";
import { compare2Objects } from "./compare2Objects.js";
import { decimal2Binary } from "./decimal2Binary.js";
import { choiceTrend } from "./choiceTrend.js";
import { clone } from "./clone.js";
import { getDate } from "./getDate.js";
import { getVersion } from "./getVersion.js";
Expand Down

0 comments on commit 4bda3e4

Please sign in to comment.