Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@aceworks-studio/math
Advanced tools
A set of utility functions related to math or numbers.
Add @aceworks-studio/math
in your dependencies:
yarn add @aceworks-studio/math
Or if you are using npm
:
npm install @aceworks-studio/math
function isFinite(value: number): boolean
Returns true
if the number not equal to infinity (or negative infinity) or NaN
.
function isInteger(value: number): boolean
Returns true
if the number is finite and a whole number (no decimal part).
function isNaN(value: number): boolean
Returns true
if the number is NaN
.
function lerp(initialValue: number, finalValue: number, alpha: number): number
Returns a number interpolated between an initial value and a final value using a number alpha
between 0 and 1.
This project is available under the MIT license. See LICENSE.txt for details.
If you would like to use this library on a Lua environment where it is currently incompatible, open an issue (or comment on an existing one) to request the appropriate modifications.
The library uses darklua to process its code.
FAQs
A set of Luau utility functions related to math or numbers
We found that @aceworks-studio/math demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.