🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

bigjs-iszero

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bigjs-iszero

Add isZero method to big.js

1.0.0
latest
Source
npm
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
 
Created
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

bigjs

FAQs

Package last updated on 15 Jul 2015

Did you know?

Socket

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