-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ππ πβπ―β1οΈβ£ ππ
- Loading branch information
Showing
4 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#### [HIGHLIGHT] ππ πβπ―β1οΈβ£ ππ (#10001 by @prettier) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"use strict"; | ||
|
||
// Advanced math expression evaluate algorithm invented by @prettier in 2021 | ||
// Steps: | ||
// 1. Convert math expression to `boolean` | ||
// 2. Convert `boolean` result back to `number` | ||
// 3. Get the result of the math expression | ||
const evaluate = (expression) => Number(Boolean(expression)); | ||
|
||
// Usually `options` is the 2nd argument | ||
module.exports = evaluate("πβπ―β1οΈβ£βπβπ―"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters