UNPKG

@futagoza/core-js

Version:

Ponyfill's for some native ES2017+ built-in methods

21 lines (15 loc) 499 B
"use strict"; /** * > _THIS API IS NOT MEANT FOR PUBLIC CONSUMPTION_ * * This will throw a `TypeError` if `V` is not a number. * * @param {*} V A value that is expected to be an number. * @param {String} P The functions path. * @param {String} N A discriptive name for the argument */ function ExpectingNumberArgument( V, P, N ) { if ( typeof V !== "number" ) throw new TypeError( P + ": " + N + " is expected to be a number." ); } module.exports = ExpectingNumberArgument;