Skip to content

percentFrom()

Returns what percentage value is of from.

Example:

ts
percentFrom(500, 2000) // 25
percentFrom(1000, 2000) // 50

Released under the MIT License.