Skip to content

Commit d901220

Browse files
committed
Indicate that isPositive includes zero, fixes #100
1 parent 45f1f37 commit d901220

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ API
163163
Tests if this Long's value is odd.
164164

165165
* Long#**isPositive**(): `boolean`<br />
166-
Tests if this Long's value is positive.
166+
Tests if this Long's value is positive or zero.
167167

168168
* Long#**isZero**/**eqz**(): `boolean`<br />
169169
Tests if this Long's value equals zero.

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ declare class Long {
210210
isOdd(): boolean;
211211

212212
/**
213-
* Tests if this Long's value is positive.
213+
* Tests if this Long's value is positive or zero.
214214
*/
215215
isPositive(): boolean;
216216

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ LongPrototype.isNegative = function isNegative() {
599599
};
600600

601601
/**
602-
* Tests if this Long's value is positive.
602+
* Tests if this Long's value is positive or zero.
603603
* @this {!Long}
604604
* @returns {boolean}
605605
*/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy