What is lodash.isnumber?
The lodash.isnumber package is a utility function that checks if a given value is classified as a number primitive or object. It is part of the Lodash library, which is a popular utility library for JavaScript.
Check if a value is a number
This feature allows you to check if a given value is a number. It returns true for number primitives and objects, including NaN, and false for non-number values.
const isNumber = require('lodash.isnumber');
console.log(isNumber(123)); // true
console.log(isNumber('123')); // false
console.log(isNumber(NaN)); // true