Skip to content

Commit 976942c

Browse files
🎨 style: Use base abs method in iabs.
1 parent 2a65b24 commit 976942c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Integer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ export class Integer {
350350
}
351351

352352
iabs ( ) {
353-
return this.sign() >= 0 ? this : this.negate(this) ;
353+
return this.abs().move(this) ;
354354
}
355355

356356
sign ( ) {

0 commit comments

Comments
 (0)