frontend/.pnpm-store/v3/files/9a/d577d4beda95e4f4a0a56a4049b9bf3efde0597c5343959d278d6b440ab2f281e655f21c5ad85d79d6f732f9f3974f8701520c3ff1aabce6773ca852656aa8

14 lines
437 B
Plaintext

"use strict";
var resolveException = require("../lib/resolve-exception")
, coerce = require("./coerce");
module.exports = function (value/*, options*/) {
var coerced = coerce(value);
if (coerced !== null) return coerced;
var options = arguments[1];
var errorMessage =
options && options.name ? "Expected a number for %n, received %v" : "%v is not a number";
return resolveException(value, errorMessage, options);
};