UNPKG

@prelude/cmp

Version:

Cmp module.

15 lines 399 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @returns sign of a number. * @throws {@link TypeError} if `value` are {@link NaN}. */ const sign = (value) => { const sign_ = Math.sign(value); if (isNaN(sign_)) { throw new TypeError('Expected number, got NaN.'); } return sign_; }; exports.default = sign; //# sourceMappingURL=sign.js.map