From d90122076a0eb6ec399f06039bb79c09fc4d829e Mon Sep 17 00:00:00 2001 From: dcode Date: Sat, 30 Oct 2021 03:07:48 +0200 Subject: [PATCH] Indicate that isPositive includes zero, fixes #100 --- README.md | 2 +- index.d.ts | 2 +- index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index afdbcdb..6b9032b 100644 --- a/README.md +++ b/README.md @@ -163,7 +163,7 @@ API Tests if this Long's value is odd. * Long#**isPositive**(): `boolean`
- Tests if this Long's value is positive. + Tests if this Long's value is positive or zero. * Long#**isZero**/**eqz**(): `boolean`
Tests if this Long's value equals zero. diff --git a/index.d.ts b/index.d.ts index a94bb28..1f1fd03 100644 --- a/index.d.ts +++ b/index.d.ts @@ -210,7 +210,7 @@ declare class Long { isOdd(): boolean; /** - * Tests if this Long's value is positive. + * Tests if this Long's value is positive or zero. */ isPositive(): boolean; diff --git a/index.js b/index.js index c3b437e..2fd859b 100644 --- a/index.js +++ b/index.js @@ -599,7 +599,7 @@ LongPrototype.isNegative = function isNegative() { }; /** - * Tests if this Long's value is positive. + * Tests if this Long's value is positive or zero. * @this {!Long} * @returns {boolean} */