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 / isZeroish.ts

/* eslint eqeqeq: "OFF" */

/**
 * @name isZeroish
 *
 * @since 5.0.0-beta.6
 *
 * @param {*} x == 0
 * @return {boolean}
 *
 * @TODO is the || the same?
 *
 * @example
 *
 *    isZeroish('0') //= true
 *    isZeroish(0)   //= true
 *    isZeroish(10)  //= true
 *
 */
const isZeroish = (x: any) => x === 0 || x === '0' || x == '0'

export { isZeroish }
export default isZeroish