export const percentOf = (partial, { in: all }) => Math.round((partial / all) * 1000) / 10
Converts a partial value into percents using named options.
Target style API. Preferred for new code.
Helpers
Source: helpers/toPercents.mjs
Target Style
Legacy Style