@akwaba/object-extensions
Version:
A collection of object utility methods
11 lines (8 loc) • 315 B
JavaScript
import getClass from "./get-class";
/**
* Returns true if the specified object is a number; otherwise, returns false
*
* @param {Object} object the object to check
* @return {Boolean} true if the object is a number; otherwise, returns false
*/
export default (object) => getClass(object) === "Number";