UNPKG

@stdlib/esm

Version:

ES module distribution for Stdlib, a standard library for JavaScript and Node.js.

3 lines 466 B
// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 import r from"./../../assert/is-positive-integer.js";import e from"./mmean.js";var i=r.isPrimitive,t=e;function n(r){var e;if(!i(r))throw new TypeError("invalid argument. Must provide a positive integer. Value: `"+r+"`.");return e=t(r),function(r,i){if(0===arguments.length)return e();return e((i-r)/i*100)}}var o=n;export default o; //# sourceMappingURL=mmpe.js.map