Socket
Socket
Sign inDemoInstall

bigjs-iszero

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bigjs-iszero

Add isZero method to big.js


Version published
Maintainers
1
Install size
5.44 kB
Created

Readme

Source

bigjs-iszero

Add isZero method to big.js

Load

It can be loaded via a script tag in an HTML document for the browser

<script src='./relative/path/to/bigjs-iszero.js'></script>

or as a CommonJS, Node.js or AMD module using require.

var bigjsIsZero = require('bigjs-iszero');

For Node.js, the library is available from the npm registry:

$ npm install bigjs-iszero

Use

var Big = require('big.js');
bigjsIsZero(Big);

new Big(0).isZero() // => true
new Big(1).isZero() // => false

Keywords

FAQs

Last updated on 15 Jul 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc