Skip to content

Commit

Permalink
remove random() #47
Browse files Browse the repository at this point in the history
  • Loading branch information
cshaa committed Sep 17, 2021
1 parent fae58b9 commit 7c0873a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Boolean logic | Description
x or y | Boolean or
x and y | Boolean and
not x | Boolean not
x ? y : z | If boolean x, value y, else z
if x then y else z | If boolean x, value y, else z
( x ) | Explicity operator precedence

Objects and arrays | Description
Expand All @@ -124,7 +124,6 @@ floor(x) | Round floating point down
log(x) | Natural logarithm
max(a, b, c...) | Max value (variable length of args)
min(a, b, c...) | Min value (variable length of args)
random() | Random floating point from 0.0 to 1.0
round(x) | Round floating point
sqrt(x) | Square root

Expand Down
1 change: 0 additions & 1 deletion src/filtrex.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ export function compileExpression(expression, options) {
log: Math.log,
max: Math.max,
min: Math.min,
random: Math.random,
round: Math.round,
sqrt: Math.sqrt,
exists: (v) => v !== undefined && v !== null,
Expand Down

0 comments on commit 7c0873a

Please sign in to comment.