is_odd 1.0.1 icon indicating copy to clipboard operation
is_odd: ^1.0.1 copied to clipboard

Minimalist and elegant API that returns true if the given number is odd.

is_odd #

Minimalist and elegant API that returns true if the given number is odd.

Usage #

import 'package:is_odd/is_odd.dart';

isOdd(0);
//=> false
isOdd(1);
//=> true
isOdd(2);
//=> false
isOdd(3);
//=> true

Disclaimer #

Implementation shamelessly stolen from the JavaScript package is-odd

2
likes
140
pub points
8%
popularity

Publisher

unverified uploader

Minimalist and elegant API that returns true if the given number is odd.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

More

Packages that depend on is_odd