Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / exotic   js

Repository URL to install this package:

Version: 2.0.8 

/ src / types / primitive / number / check / isNumberishWithDecimals.ts

import { and } from '../../../../deps'
import isNumberish from './isNumberish'
import hasDecimals from './hasDecimals'

/**
 * @since 5.0.0-beta.9
 * @desc checks first for numberish, then decimals
 * @name isNumberishWithDecimals
 * @alias isFloat
 *
 * @param {*} x
 * @return {boolean} x isNumberishWithDecimals
 *
 * @type {Function}
 */
const isNumberishWithDecimals = and(isNumberish, hasDecimals)

export { isNumberishWithDecimals }
export default isNumberishWithDecimals