# is-negative **Repository Path**: mirrors_stevemao/is-negative ## Basic Information - **Project Name**: is-negative - **Description**: Test if a number is negative - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2025-09-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # is-negative [![Build Status](https://travis-ci.org/kevva/is-negative.svg?branch=master)](https://travis-ci.org/kevva/is-negative) > Test if a number is negative ## Install ``` $ npm install --save is-negative ``` ## Usage ```js var isNegative = require('is-negative'); isNegative(-1); //=> true isNegative(1); //=> false isNegative(0); //=> false ``` _Note: This module doesn't consider `-0` to be a negative number. If you want to detect `-0`, use the [`negative-zero`](https://github.com/sindresorhus/negative-zero) module._ ## License MIT © [Kevin Martensson](http://github.com/kevva)