UNPKG

theorem.js

Version:

A Math library for computation in JavaScript

8 lines (7 loc) 120 B
convert(value, type, a, b) { class Units { //= ./units/src/ } const u = new Units() return u[type](value, a, b) }